Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bf6512f84f7d9275332b8d119ab2b79a72ee8287
https://github.com/WebKit/WebKit/commit/bf6512f84f7d9275332b8d119ab2b79a72ee8287
Author: Sergey Rubanov <[email protected]>
Date: 2026-08-01 (Sat, 01 Aug 2026)
Changed paths:
A JSTests/wasm/stress/exception-trace-stack.js
M
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/constructor.tentative.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/constructor.tentative.any.worker-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt
M Source/JavaScriptCore/builtins/BuiltinNames.cpp
M Source/JavaScriptCore/builtins/BuiltinNames.h
M Source/JavaScriptCore/wasm/js/WebAssemblyExceptionConstructor.cpp
M Source/JavaScriptCore/wasm/js/WebAssemblyExceptionPrototype.cpp
Log Message:
-----------
[JSC][Wasm] Support WebAssembly.Exception options.traceStack
https://bugs.webkit.org/show_bug.cgi?id=319826
Reviewed by Keith Miller.
Accept the optional ExceptionOptions argument on WebAssembly.Exception.
When traceStack is true, capture a stack and store it under a private
name; expose it via a prototype getter (IDL attribute). Default remains
no stack. Set the constructor length to 2 to match the IDL.
Keep Error on CommonIdentifiers::stack. Register stackPrivateName as a
private-only special case (like polyProto) so Exception storage does not
introduce a second public "stack" Identifier.
* Source/JavaScriptCore/wasm/js/WebAssemblyExceptionConstructor.cpp:
* Source/JavaScriptCore/wasm/js/WebAssemblyExceptionPrototype.cpp:
* Source/JavaScriptCore/builtins/BuiltinNames.h:
* Source/JavaScriptCore/builtins/BuiltinNames.cpp:
* JSTests/wasm/stress/exception-trace-stack.js: Added.
*
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/constructor.tentative.any-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/constructor.tentative.any.worker-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt:
Canonical link: https://commits.webkit.org/318397@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications