diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/SharedArrayBuffer/prototype/slice/name.js')
-rw-r--r-- | js/src/tests/test262/built-ins/SharedArrayBuffer/prototype/slice/name.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/SharedArrayBuffer/prototype/slice/name.js b/js/src/tests/test262/built-ins/SharedArrayBuffer/prototype/slice/name.js new file mode 100644 index 0000000000..a3407d4b8a --- /dev/null +++ b/js/src/tests/test262/built-ins/SharedArrayBuffer/prototype/slice/name.js @@ -0,0 +1,30 @@ +// |reftest| skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally +// Copyright (C) 2015 André Bargull. All rights reserved. +// Copyright (C) 2017 Mozilla Corporation. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: > + SharedArrayBuffer.prototype.slice.name is "slice". +info: | + SharedArrayBuffer.prototype.slice ( start, end ) + + 17 ECMAScript Standard Built-in Objects: + Every built-in Function object, including constructors, that is not + identified as an anonymous function has a name property whose value + is a String. + + Unless otherwise specified, the name property of a built-in Function + object, if it exists, has the attributes { [[Writable]]: false, + [[Enumerable]]: false, [[Configurable]]: true }. +includes: [propertyHelper.js] +features: [SharedArrayBuffer] +---*/ + +assert.sameValue(SharedArrayBuffer.prototype.slice.name, "slice"); + +verifyNotEnumerable(SharedArrayBuffer.prototype.slice, "name"); +verifyNotWritable(SharedArrayBuffer.prototype.slice, "name"); +verifyConfigurable(SharedArrayBuffer.prototype.slice, "name"); + +reportCompare(0, 0); |