diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/TypedArray/prototype/constructor.js')
-rw-r--r-- | js/src/tests/test262/built-ins/TypedArray/prototype/constructor.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/TypedArray/prototype/constructor.js b/js/src/tests/test262/built-ins/TypedArray/prototype/constructor.js new file mode 100644 index 0000000000..d41ffbfa41 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArray/prototype/constructor.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-%typedarray%.prototype.constructor +description: > + Initial state of the constructor property +info: | + The initial value of %TypedArray%.prototype.constructor is the %TypedArray% intrinsic object. + + Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it + should be writable and configurable, but not enumerable. +includes: [propertyHelper.js, testTypedArray.js] +features: [TypedArray] +---*/ + +assert.sameValue(TypedArray.prototype.constructor, TypedArray); + +verifyNotEnumerable(TypedArray.prototype, "constructor"); +verifyWritable(TypedArray.prototype, "constructor"); +verifyConfigurable(TypedArray.prototype, "constructor"); + +reportCompare(0, 0); |