diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Symbol/prototype/description/descriptor.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Symbol/prototype/description/descriptor.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Symbol/prototype/description/descriptor.js b/js/src/tests/test262/built-ins/Symbol/prototype/description/descriptor.js new file mode 100644 index 0000000000..2f793f7cf3 --- /dev/null +++ b/js/src/tests/test262/built-ins/Symbol/prototype/description/descriptor.js @@ -0,0 +1,41 @@ +// Copyright 2018 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-symbol.prototype.description +description: > + Test the descriptor of Symbol.prototype.description. +info: | + `Symbol.prototype.description` is an accessor property whose + set accessor function is undefined. +includes: [propertyHelper.js] +features: [Symbol.prototype.description] +---*/ + + +var desc = Object.getOwnPropertyDescriptor(Symbol.prototype, 'description'); + +assert.sameValue( + desc.set, + undefined, + 'The value of desc.set is `undefined`' +); + +assert.sameValue( + desc.writable, + undefined, + 'The value of desc.writable is `undefined`' +); + +assert.sameValue( + typeof desc.get, + 'function', + 'The value of `typeof desc.get` is "function"' +); + +verifyProperty(Symbol.prototype, 'description', { + enumerable: false, + configurable: true, +}); + +reportCompare(0, 0); |