1 // Copyright (C) 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-integer-indexed-exotic-objects-delete-p
6 Use OrdinaryDelete if key is not a CanonicalNumericIndex
11 Assert: IsPropertyKey(P) is true.
12 Assert: O is an Integer-Indexed exotic object.
13 If Type(P) is String, then
14 Let numericIndex be ! CanonicalNumericIndexString(P).
15 If numericIndex is not undefined, then
16 If IsDetachedBuffer(O.[[ViewedArrayBuffer]]) is true, return true.
17 If ! IsValidIntegerIndex(O, numericIndex) is false, return true.
20 Return ? OrdinaryDelete(O, P).
22 includes: [testTypedArray.js]
23 features: [align-detached-buffer-semantics-with-web-reality, TypedArray]
26 testWithTypedArrayConstructors(function(TA) {
27 let sample = new TA(1);
29 Object.defineProperty(sample, "foo", {
31 throw new Test262Error();
35 assert.throws(Test262Error, () => {
37 }, '`sample.foo` throws Test262Error');