diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/String/prototype/at')
3 files changed, 9 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js b/js/src/tests/test262/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js index 64a31c0120..80fc06db0c 100644 --- a/js/src/tests/test262/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js +++ b/js/src/tests/test262/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js @@ -17,6 +17,6 @@ let s = "01"; assert.throws(TypeError, () => { s.at(Symbol()); -}, '`s.at(Symbol())` throws TypeError'); +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/at/length.js b/js/src/tests/test262/built-ins/String/prototype/at/length.js index d552c459bd..c27076b9d4 100644 --- a/js/src/tests/test262/built-ins/String/prototype/at/length.js +++ b/js/src/tests/test262/built-ins/String/prototype/at/length.js @@ -14,13 +14,11 @@ features: [String.prototype.at] ---*/ assert.sameValue(typeof String.prototype.at, 'function'); -assert.sameValue( - String.prototype.at.length, 1, - 'The value of String.prototype.at.length is 1' -); - -verifyNotEnumerable(String.prototype.at, 'length'); -verifyNotWritable(String.prototype.at, 'length'); -verifyConfigurable(String.prototype.at, 'length'); +verifyProperty(String.prototype.at, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/String/prototype/at/return-abrupt-from-this.js b/js/src/tests/test262/built-ins/String/prototype/at/return-abrupt-from-this.js index 0dc4011fce..f9222d733e 100644 --- a/js/src/tests/test262/built-ins/String/prototype/at/return-abrupt-from-this.js +++ b/js/src/tests/test262/built-ins/String/prototype/at/return-abrupt-from-this.js @@ -15,10 +15,10 @@ assert.sameValue(typeof String.prototype.at, 'function'); assert.throws(TypeError, () => { String.prototype.at.call(undefined); -}, '`String.prototype.at.call(undefined)` throws TypeError'); +}); assert.throws(TypeError, () => { String.prototype.at.call(null); -}, '`String.prototype.at.call(null)` throws TypeError'); +}); reportCompare(0, 0); |