diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Symbol/keyFor')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/length.js b/js/src/tests/test262/built-ins/Symbol/keyFor/length.js index 8f1296daf6..b01ae0f8bf 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/length.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/length.js @@ -23,10 +23,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.length, 1); - -verifyNotEnumerable(Symbol.keyFor, "length"); -verifyNotWritable(Symbol.keyFor, "length"); -verifyConfigurable(Symbol.keyFor, "length"); +verifyProperty(Symbol.keyFor, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/name.js b/js/src/tests/test262/built-ins/Symbol/keyFor/name.js index 10adeeb674..9bbd98a48d 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/name.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/name.js @@ -20,10 +20,11 @@ includes: [propertyHelper.js] features: [Symbol] ---*/ -assert.sameValue(Symbol.keyFor.name, "keyFor"); - -verifyNotEnumerable(Symbol.keyFor, "name"); -verifyNotWritable(Symbol.keyFor, "name"); -verifyConfigurable(Symbol.keyFor, "name"); +verifyProperty(Symbol.keyFor, "name", { + value: "keyFor", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js b/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js index 61d6b676d6..ac45a99ffe 100644 --- a/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/Symbol/keyFor/not-a-constructor.js @@ -25,7 +25,7 @@ assert.sameValue(isConstructor(Symbol.keyFor), false, 'isConstructor(Symbol.keyF assert.throws(TypeError, () => { new Symbol.keyFor(Symbol()); -}, '`new Symbol.keyFor(Symbol())` throws TypeError'); +}); reportCompare(0, 0); |