2015-02-20 03:41:55 +01:00
|
|
|
// Copyright 2015 Cubane Canada, Inc. All rights reserved.
|
|
|
|
// See LICENSE for details.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
info: >
|
|
|
|
ArrayBuffer has a property at `Symbol.species`
|
2016-04-22 21:33:43 +02:00
|
|
|
esid: sec-get-arraybuffer-@@species
|
2015-02-20 03:41:55 +01:00
|
|
|
es6id: 24.1.3.3
|
|
|
|
author: Sam Mikes
|
|
|
|
description: ArrayBuffer[Symbol.species] exists per spec
|
|
|
|
features: [ ArrayBuffer, Symbol.species ]
|
2016-04-22 21:33:43 +02:00
|
|
|
includes: [propertyHelper.js]
|
2015-02-20 03:41:55 +01:00
|
|
|
---*/
|
|
|
|
|
2016-04-22 21:33:43 +02:00
|
|
|
var desc = Object.getOwnPropertyDescriptor(ArrayBuffer, Symbol.species);
|
2015-02-20 03:41:55 +01:00
|
|
|
|
2016-04-22 21:33:43 +02:00
|
|
|
assert.sameValue(desc.set, undefined);
|
|
|
|
assert.sameValue(typeof desc.get, 'function');
|
2015-02-20 03:41:55 +01:00
|
|
|
|
|
|
|
verifyNotWritable(ArrayBuffer, Symbol.species, Symbol.species);
|
|
|
|
verifyNotEnumerable(ArrayBuffer, Symbol.species);
|
|
|
|
verifyConfigurable(ArrayBuffer, Symbol.species);
|