[webkit-changes] [WebKit/WebKit] ee334f: [JSC] Update ArrayBuffer#resize's detach check timing
Yusuke Suzuki
noreply at github.com
Mon Jul 10 21:04:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ee334fb70f71d5d522f3d2d93d922bc44419cca9
https://github.com/WebKit/WebKit/commit/ee334fb70f71d5d522f3d2d93d922bc44419cca9
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-07-10 (Mon, 10 Jul 2023)
Changed paths:
A JSTests/stress/arraybuffer-resizable-resize-update.js
M Source/JavaScriptCore/runtime/JSArrayBufferPrototype.cpp
Log Message:
-----------
[JSC] Update ArrayBuffer#resize's detach check timing
https://bugs.webkit.org/show_bug.cgi?id=259076
rdar://112041092
Reviewed by Mark Lam.
Change the order of detach check according to the latest spec[1],
but this only changes the type of error (from RangeError to TypeError).
[1]: https://github.com/tc39/ecma262/pull/3116
* JSTests/stress/arraybuffer-resizable-resize-update.js: Added.
(shouldThrow):
* Source/JavaScriptCore/runtime/JSArrayBufferPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/265935@main
More information about the webkit-changes
mailing list