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 Does not throw on an instance with a detached buffer if key is a Symbol
8 9.4.5.5 [[Set]] ( P, V, Receiver)
11 2. If Type(P) is String, then
13 3. Return ? OrdinarySet(O, P, V, Receiver).
14 includes: [testTypedArray.js, detachArrayBuffer.js]
15 features: [align-detached-buffer-semantics-with-web-reality, Symbol, Reflect, TypedArray]
20 testWithTypedArrayConstructors(function(TA) {
21 let sample = new TA(2);
22 $DETACHBUFFER(sample.buffer);
25 Reflect.set(sample, s, "test262"),
27 'Reflect.set(sample, "Symbol(\\"1\\")", "test262") must return true'
29 assert.sameValue(sample[s], "test262", 'The value of sample[s] is "test262"');