mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
See https://github.com/tc39/ecma262/commit/874ecf9 After this refactoring, we now correctly handle non-function / non-undefined objects being passed multiple times: instead of skipping assignment to promiseCapability altogether and failing with a NotAFunction error in the end; on the second time the executor closure is called, we return GetCapabilitiesExecutorCalledMultipleTimes. This fixes the 7 `capability-executor-called-twice.js` test262 tests.
6.3 KiB
6.3 KiB