Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / SharedArrayBuffer / prototype / slice / name.js
bloba3407d4b8abff0d96142cbaa27f509cbf74af9e4
1 // |reftest| skip-if(!this.hasOwnProperty('SharedArrayBuffer')) -- SharedArrayBuffer is not enabled unconditionally
2 // Copyright (C) 2015 AndrĂ© Bargull. All rights reserved.
3 // Copyright (C) 2017 Mozilla Corporation. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
6 /*---
7 description: >
8   SharedArrayBuffer.prototype.slice.name is "slice".
9 info: |
10   SharedArrayBuffer.prototype.slice ( start, end )
12   17 ECMAScript Standard Built-in Objects:
13     Every built-in Function object, including constructors, that is not
14     identified as an anonymous function has a name property whose value
15     is a String.
17     Unless otherwise specified, the name property of a built-in Function
18     object, if it exists, has the attributes { [[Writable]]: false,
19     [[Enumerable]]: false, [[Configurable]]: true }.
20 includes: [propertyHelper.js]
21 features: [SharedArrayBuffer]
22 ---*/
24 assert.sameValue(SharedArrayBuffer.prototype.slice.name, "slice");
26 verifyNotEnumerable(SharedArrayBuffer.prototype.slice, "name");
27 verifyNotWritable(SharedArrayBuffer.prototype.slice, "name");
28 verifyConfigurable(SharedArrayBuffer.prototype.slice, "name");
30 reportCompare(0, 0);