diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/SetIteratorPrototype')
-rw-r--r-- | js/src/tests/test262/built-ins/SetIteratorPrototype/next/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/SetIteratorPrototype/next/name.js | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/js/src/tests/test262/built-ins/SetIteratorPrototype/next/length.js b/js/src/tests/test262/built-ins/SetIteratorPrototype/next/length.js index 8d1afa8e61..7ecff0d6bd 100644 --- a/js/src/tests/test262/built-ins/SetIteratorPrototype/next/length.js +++ b/js/src/tests/test262/built-ins/SetIteratorPrototype/next/length.js @@ -24,10 +24,11 @@ includes: [propertyHelper.js] var SetIteratorProto = Object.getPrototypeOf(new Set().values()); -assert.sameValue(SetIteratorProto.next.length, 0); - -verifyNotEnumerable(SetIteratorProto.next, "length"); -verifyNotWritable(SetIteratorProto.next, "length"); -verifyConfigurable(SetIteratorProto.next, "length"); +verifyProperty(SetIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/SetIteratorPrototype/next/name.js b/js/src/tests/test262/built-ins/SetIteratorPrototype/next/name.js index 1792ccd461..81b5158661 100644 --- a/js/src/tests/test262/built-ins/SetIteratorPrototype/next/name.js +++ b/js/src/tests/test262/built-ins/SetIteratorPrototype/next/name.js @@ -21,10 +21,11 @@ includes: [propertyHelper.js] var SetIteratorProto = Object.getPrototypeOf(new Set().values()); -assert.sameValue(SetIteratorProto.next.name, "next"); - -verifyNotEnumerable(SetIteratorProto.next, "name"); -verifyNotWritable(SetIteratorProto.next, "name"); -verifyConfigurable(SetIteratorProto.next, "name"); +verifyProperty(SetIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |