-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] DataView constructor should check if byteOffset exceeds source …
…ArrayBuffer length before creating an instance https://bugs.webkit.org/show_bug.cgi?id=273689 Reviewed by Yusuke Suzuki. According to the spec[1], should check if byteOffset exceeds source ArrayBuffer length before creating an instance. This patch fixes the test case that is failing in test262[2]. [1]: https://tc39.es/ecma262/#sec-dataview-buffer-byteoffset-bytelength [2]: https://github.com/tc39/test262/blob/main/test/built-ins/DataView/byteOffset-validated-against-initial-buffer-length.js * JSTests/stress/dataview-construct.js: (shouldThrow): * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructorInlines.h: (JSC::constructGenericTypedArrayViewImpl): Canonical link: https://commits.webkit.org/278385@main
- Loading branch information
1 parent
f941ea9
commit b56ff58
Showing
3 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters