summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/harmony/array-species-delete.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/array-species-delete.js')
-rw-r--r--deps/v8/test/mjsunit/harmony/array-species-delete.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/harmony/array-species-delete.js b/deps/v8/test/mjsunit/harmony/array-species-delete.js
index bccf3a4df9..ba49414069 100644
--- a/deps/v8/test/mjsunit/harmony/array-species-delete.js
+++ b/deps/v8/test/mjsunit/harmony/array-species-delete.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-species
+// Flags: --harmony-species --allow-natives-syntax
// Overwriting the constructor of an instance updates the protector
@@ -19,6 +19,7 @@ class MyArray extends Array { }
Object.prototype[Symbol.species] = MyArray;
delete Array[Symbol.species];
+assertFalse(%SpeciesProtector());
assertEquals(MyArray, x.map(()=>{}).constructor);
assertEquals(MyArray, x.filter(()=>{}).constructor);