diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next')
-rw-r--r-- | js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/length.js | 11 | ||||
-rw-r--r-- | js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/name.js | 11 |
2 files changed, 12 insertions, 10 deletions
diff --git a/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/length.js b/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/length.js index da310cd3f2..552d81019e 100644 --- a/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/length.js +++ b/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/length.js @@ -26,10 +26,11 @@ features: [Symbol.matchAll] var RegExpStringIteratorProto = Object.getPrototypeOf(/./[Symbol.matchAll]('')); -assert.sameValue(RegExpStringIteratorProto.next.length, 0); - -verifyNotEnumerable(RegExpStringIteratorProto.next, 'length'); -verifyNotWritable(RegExpStringIteratorProto.next, 'length'); -verifyConfigurable(RegExpStringIteratorProto.next, 'length'); +verifyProperty(RegExpStringIteratorProto.next, "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/name.js b/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/name.js index bd178670f9..78fc8682dc 100644 --- a/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/name.js +++ b/js/src/tests/test262/built-ins/RegExpStringIteratorPrototype/next/name.js @@ -24,10 +24,11 @@ features: [Symbol.matchAll] var RegExpStringIteratorProto = Object.getPrototypeOf(/./[Symbol.matchAll]('')); -assert.sameValue(RegExpStringIteratorProto.next.name, 'next'); - -verifyNotEnumerable(RegExpStringIteratorProto.next, 'name'); -verifyNotWritable(RegExpStringIteratorProto.next, 'name'); -verifyConfigurable(RegExpStringIteratorProto.next, 'name'); +verifyProperty(RegExpStringIteratorProto.next, "name", { + value: "next", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |