Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6bd3c3c9bee75d962e1ef0691c157254ed2b17a2
      
https://github.com/WebKit/WebKit/commit/6bd3c3c9bee75d962e1ef0691c157254ed2b17a2
  Author: Brenden Forward <b_forw...@apple.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    A JSTests/wasm/stress/tag-type-v128.js
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyException.cpp

  Log Message:
  -----------
  Throw exception for invalid types in getArg instead of asserting.
https://bugs.webkit.org/show_bug.cgi?id=293002
rdar://150852889

Reviewed by Daniel Liu and Yusuke Suzuki.

We should throw an exception here since the spec has changed since initial 
implementation.
See: 
https://webassembly.github.io/exception-handling/js-api/#dom-exception-getarg

* JSTests/wasm/stress/tag-type-v128.js: Added.
(const.v19.new.WebAssembly.Instance.new.WebAssembly.Module.new.Uint8Array):
(assert.throws):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyException.cpp:
(JSC::JSWebAssemblyException::getArg const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to