Bug 1878658 - Part 2: Throw RangeError for out-of-bounds DataViews from correct globa...
commite78bd293157153b51a40d81c07185dddf630a8e4
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 7 Feb 2024 13:02:48 +0000 (7 13:02 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Wed, 7 Feb 2024 13:02:48 +0000 (7 13:02 +0000)
treea6bbfe3c3c4b276b3eb752288e9d1ba1f91e1d97
parent5f584448e91a83b85f4065e6c6e7c66190831d43
Bug 1878658 - Part 2: Throw RangeError for out-of-bounds DataViews from correct global. r=spidermonkey-reviewers,sfink

The RangeError needs to be thrown before entering the other realm through `JSAutoRealm`.

Depends on D200636

Differential Revision: https://phabricator.services.mozilla.com/D200637
js/src/builtin/DataViewObject.cpp
js/src/jit-test/tests/dataview/create-out-of-bounds-ccw.js [new file with mode: 0644]