You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7f38ebb
Browse filesBrowse the repository at this point in the historyBrowse files
https://bugs.webkit.org/show_bug.cgi?id=321890
rdar://185064567
Reviewed by Sosuke Suzuki.
Test262 is updated[1] to include the latest spec change proposal
for Promise.try[2], which uses PromiseResolve instead of a promise
created by NewPromiseCapability. This simplifies our Promise.try
implementation since we can just use @promiseResolve and @promisereject
helpers instead. Also this removes the reference to
@newPromiseCapability in JSC code. So we drop PromiseOperations.js and
its JS builtins, and replace @newPromiseCapability with C++ version for
remaining WebCore users.
WebCore users can be replaced by using normal Promise + first-resolving
handler. This is fixed in a subsequent change.
[1]: tc39/test262#5072
[2]: tc39/ecma262#3883
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/DerivedSources-input.xcfilelist:
* Source/JavaScriptCore/DerivedSources.make:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/builtins/PromiseConstructor.js:
(try):
* Source/JavaScriptCore/builtins/PromiseOperations.js: Removed.
* Source/JavaScriptCore/bytecode/LinkTimeConstant.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
(JSC::JSGlobalObject::init):
Canonical link: https://commits.webkit.org/319276@main
0 commit comments