[webkit-changes] [WebKit/WebKit] 3935b8: [JSC] Throw RangeError when WebAssembly.Tag.getArg...

Yusuke Suzuki noreply at github.com
Tue Aug 20 15:04:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3935b8befec9b91257109ca77551d6e062757e77
      https://github.com/WebKit/WebKit/commit/3935b8befec9b91257109ca77551d6e062757e77
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-08-20 (Tue, 20 Aug 2024)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/getArg.tentative.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/getArg.tentative.any.worker-expected.txt
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyHelpers.h
    M Source/JavaScriptCore/wasm/js/WebAssemblyExceptionPrototype.cpp

  Log Message:
  -----------
  [JSC] Throw RangeError when WebAssembly.Tag.getArg's number is out of range
https://bugs.webkit.org/show_bug.cgi?id=278413
rdar://134364529

Reviewed by Mark Lam.

WebAssembly.Tag.getArg should throw RangeError instead of TypeError for out of range number argument.

* LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/getArg.tentative.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/exception/getArg.tentative.any.worker-expected.txt:
* Source/JavaScriptCore/wasm/js/JSWebAssemblyHelpers.h:
(JSC::toNonWrappingUint32):
* Source/JavaScriptCore/wasm/js/WebAssemblyExceptionPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

Canonical link: https://commits.webkit.org/282520@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list