diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/Symbol.iterator')
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/length.js b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/length.js index c7b43eed8a..20e1065b81 100644 --- a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/length.js +++ b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/length.js @@ -19,10 +19,11 @@ features: [Symbol.iterator] includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype[Symbol.iterator].length, 0); - -verifyNotEnumerable(String.prototype[Symbol.iterator], 'length'); -verifyNotWritable(String.prototype[Symbol.iterator], 'length'); -verifyConfigurable(String.prototype[Symbol.iterator], 'length'); +verifyProperty(String.prototype[Symbol.iterator], "length", { + value: 0, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/name.js b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/name.js index 29f1ffc52e..a4471724c5 100644 --- a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/name.js +++ b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/name.js @@ -22,10 +22,11 @@ features: [Symbol.iterator] includes: [propertyHelper.js] ---*/ -assert.sameValue(String.prototype[Symbol.iterator].name, '[Symbol.iterator]'); - -verifyNotEnumerable(String.prototype[Symbol.iterator], 'name'); -verifyNotWritable(String.prototype[Symbol.iterator], 'name'); -verifyConfigurable(String.prototype[Symbol.iterator], 'name'); +verifyProperty(String.prototype[Symbol.iterator], "name", { + value: "[Symbol.iterator]", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js index 33fdc254d4..8c7a28d690 100644 --- a/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js +++ b/js/src/tests/test262/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js @@ -29,7 +29,7 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype[Symbol.iterator](); -}, '`new String.prototype[Symbol.iterator]()` throws TypeError'); +}); reportCompare(0, 0); |