Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 17f3c1124307771e573d3f11e36284c03e9b4e6d
https://github.com/WebKit/WebKit/commit/17f3c1124307771e573d3f11e36284c03e9b4e6d
Author: Sosuke Suzuki <[email protected]>
Date: 2025-05-12 (Mon, 12 May 2025)
Changed paths:
A JSTests/stress/suppressed-error-basic.js
M JSTests/test262/config.yaml
M Source/JavaScriptCore/Sources.txt
M Source/JavaScriptCore/runtime/CommonIdentifiers.h
M Source/JavaScriptCore/runtime/Error.cpp
M Source/JavaScriptCore/runtime/ErrorType.h
M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
M Source/JavaScriptCore/runtime/JSGlobalObject.h
M Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h
A Source/JavaScriptCore/runtime/SuppressedError.cpp
A Source/JavaScriptCore/runtime/SuppressedError.h
A Source/JavaScriptCore/runtime/SuppressedErrorConstructor.cpp
A Source/JavaScriptCore/runtime/SuppressedErrorConstructor.h
A Source/JavaScriptCore/runtime/SuppressedErrorConstructorInlines.h
A Source/JavaScriptCore/runtime/SuppressedErrorPrototype.cpp
A Source/JavaScriptCore/runtime/SuppressedErrorPrototype.h
A Source/JavaScriptCore/runtime/SuppressedErrorPrototypeInlines.h
Log Message:
-----------
[JSC] Implement `SuppressedError` from Explicit Resource Management Proposal
https://bugs.webkit.org/show_bug.cgi?id=292747
Reviewed by Yusuke Suzuki.
This patch implements new `SuppressedError`[1] built-in from Explicit
Resource Management Proposal[2].
[1]:
https://tc39.es/proposal-explicit-resource-management/#sec-suppressederror-objects
[2]: https://github.com/tc39/proposal-explicit-resource-management
* JSTests/stress/suppressed-error-basic.js: Added.
(shouldBe):
(shouldBe.OurSuppressedError):
* JSTests/test262/config.yaml:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/runtime/CommonIdentifiers.h:
* Source/JavaScriptCore/runtime/Error.cpp:
(JSC::createError):
* Source/JavaScriptCore/runtime/ErrorType.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::initializeSuppressedErrorConstructor):
(JSC::JSGlobalObject::init):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
* Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h:
(JSC::JSGlobalObject::errorStructure const):
* Source/JavaScriptCore/runtime/SuppressedError.cpp: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
(JSC::createSuppressedError):
* Source/JavaScriptCore/runtime/SuppressedError.h: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
* Source/JavaScriptCore/runtime/SuppressedErrorConstructor.cpp: Added.
(JSC::SuppressedErrorConstructor::SuppressedErrorConstructor):
(JSC::SuppressedErrorConstructor::finishCreation):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/SuppressedErrorConstructor.h: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
* Source/JavaScriptCore/runtime/SuppressedErrorConstructorInlines.h: Copied
from Source/JavaScriptCore/runtime/ErrorType.h.
(JSC::SuppressedErrorConstructor::createStructure):
* Source/JavaScriptCore/runtime/SuppressedErrorPrototype.cpp: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
(JSC::SuppressedErrorPrototype::SuppressedErrorPrototype):
(JSC::SuppressedErrorPrototype::finishCreation):
* Source/JavaScriptCore/runtime/SuppressedErrorPrototype.h: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
* Source/JavaScriptCore/runtime/SuppressedErrorPrototypeInlines.h: Copied from
Source/JavaScriptCore/runtime/ErrorType.h.
(JSC::SuppressedErrorPrototype::createStructure):
Canonical link: https://commits.webkit.org/294774@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes