1 // |reftest| shell-option(--enable-float16array)
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-integer-indexed-exotic-objects-set-p-v-receiver
7 Returns abrupt from OrdinarySet when key is not a numeric index
9 9.4.5.5 [[Set]] ( P, V, Receiver)
12 2. If Type(P) is String, then
13 a. Let numericIndex be ! CanonicalNumericIndexString(P).
14 b. If numericIndex is not undefined, then
16 3. Return ? OrdinarySet(O, P, V, Receiver).
18 9.1.9.1 OrdinarySet (O, P, V, Receiver)
21 8. Perform ? Call(setter, Receiver, « V »).
23 includes: [testTypedArray.js]
24 features: [align-detached-buffer-semantics-with-web-reality, TypedArray]
27 testWithTypedArrayConstructors(function(TA) {
28 var sample = new TA(1);
30 Object.defineProperty(sample, "test262", {
32 throw new Test262Error();
36 assert.throws(Test262Error, function() {
40 assert.sameValue(sample.test262, undefined, 'The value of sample.test262 is expected to equal `undefined`');