summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/messages.js')
-rw-r--r--deps/v8/test/mjsunit/messages.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/messages.js b/deps/v8/test/mjsunit/messages.js
index 1dd9a05879..d5c796228c 100644
--- a/deps/v8/test/mjsunit/messages.js
+++ b/deps/v8/test/mjsunit/messages.js
@@ -171,15 +171,15 @@ test(function() {
for (constructor of typedArrayConstructors) {
test(() => {
const ta = new constructor([1]);
- %ArrayBufferNeuter(ta.buffer);
+ %ArrayBufferDetach(ta.buffer);
ta.find(() => {});
- }, "Cannot perform %TypedArray%.prototype.find on a detached ArrayBuffer", TypeError);
+ }, "Cannot perform %TypedArray%.prototype.find on a neutered ArrayBuffer", TypeError);
test(() => {
const ta = new constructor([1]);
- %ArrayBufferNeuter(ta.buffer);
+ %ArrayBufferDetach(ta.buffer);
ta.findIndex(() => {});
- }, "Cannot perform %TypedArray%.prototype.findIndex on a detached ArrayBuffer", TypeError);
+ }, "Cannot perform %TypedArray%.prototype.findIndex on a neutered ArrayBuffer", TypeError);
}
// kFirstArgumentNotRegExp
@@ -570,6 +570,10 @@ test(function() {
"a".repeat(1 << 30);
}, "Invalid string length", RangeError);
+test(function() {
+ new Array(1 << 30).join();
+}, "Invalid string length", RangeError);
+
// kNormalizationForm
test(function() {
"".normalize("ABC");