1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-integer-indexed-exotic-objects-set-p-v-receiver
6 Returns abrupt from OrdinarySet when key is not a numeric index
8 9.4.5.5 [[Set]] ( P, V, Receiver)
11 2. If Type(P) is String, then
12 a. Let numericIndex be ! CanonicalNumericIndexString(P).
13 b. If numericIndex is not undefined, then
15 3. Return ? OrdinarySet(O, P, V, Receiver).
17 9.1.9.1 OrdinarySet (O, P, V, Receiver)
20 8. Perform ? Call(setter, Receiver, « V »).
22 includes: [testTypedArray.js]
23 features: [align-detached-buffer-semantics-with-web-reality, TypedArray]
26 testWithTypedArrayConstructors(function(TA) {
27 var sample = new TA(1);
29 Object.defineProperty(sample, "test262", {
31 throw new Test262Error();
35 assert.throws(Test262Error, function() {
39 assert.sameValue(sample.test262, undefined, 'The value of sample.test262 is expected to equal `undefined`');