Strict mode Failing
Expected no error, got TypeError: Cannot read property 'set' of undefined
non-Strict mode Failing
Expected no error, got TypeError: Cannot read property 'set' of undefined
Features:
- Symbol.species
Expected no error, got TypeError: Cannot read property 'set' of undefined
Expected no error, got TypeError: Cannot read property 'set' of undefined
// Copyright 2015 Cubane Canada, Inc. All rights reserved. // See LICENSE for details. /*--- info: | Array has a property at `Symbol.species` esid: sec-get-array-@@species author: Sam Mikes description: Array[Symbol.species] exists per spec includes: [propertyHelper.js] features: [Symbol.species] ---*/ var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species); assert.sameValue(desc.set, undefined); assert.sameValue(typeof desc.get, 'function'); verifyNotWritable(Array, Symbol.species, Symbol.species); verifyNotEnumerable(Array, Symbol.species); verifyConfigurable(Array, Symbol.species);