| Index: test/mjsunit/es6/typedarray-indexing.js
|
| diff --git a/test/mjsunit/es6/typedarray-indexing.js b/test/mjsunit/es6/typedarray-indexing.js
|
| index 9c33b34a39ee368daa70ade0494ce872210b1b2f..1c439f9ddac48ea7efd847e59be70cf97e981f5c 100644
|
| --- a/test/mjsunit/es6/typedarray-indexing.js
|
| +++ b/test/mjsunit/es6/typedarray-indexing.js
|
| @@ -1,8 +1,6 @@
|
| // Copyright 2015 the V8 project authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
| -
|
| -// Flags: --allow-natives-syntax
|
|
|
| var typedArrayConstructors = [
|
| Uint8Array,
|
| @@ -15,14 +13,6 @@
|
| Float32Array,
|
| Float64Array
|
| ];
|
| -
|
| -var tmp = {
|
| - [Symbol.toPrimitive]() {
|
| - assertUnreachable("Parameter should not be processed when " +
|
| - "array.[[ViewedArrayBuffer]] is neutered.");
|
| - return 0;
|
| - }
|
| -};
|
|
|
| for (var constructor of typedArrayConstructors) {
|
| var array = new constructor([1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]);
|
| @@ -63,12 +53,6 @@
|
| }
|
| assertEquals(-1, array.indexOf(NaN));
|
|
|
| - // Detached Operation
|
| - var array = new constructor([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
|
| - %ArrayBufferNeuter(array.buffer);
|
| -
|
| - assertThrows(() => array.indexOf(tmp), TypeError);
|
| -
|
| // ----------------------------------------------------------------------
|
| // %TypedArray%.prototype.lastIndexOf.
|
| // ----------------------------------------------------------------------
|
| @@ -105,9 +89,4 @@
|
| assertEquals(-1, array.lastIndexOf(-Infinity));
|
| }
|
| assertEquals(-1, array.lastIndexOf(NaN));
|
| -
|
| - // Detached Operation
|
| - var array = new constructor([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
|
| - %ArrayBufferNeuter(array.buffer);
|
| - assertThrows(() => array.lastIndexOf(tmp), TypeError);
|
| }
|
|
|