diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/NativeErrors/RangeError')
3 files changed, 18 insertions, 15 deletions
diff --git a/js/src/tests/test262/built-ins/NativeErrors/RangeError/length.js b/js/src/tests/test262/built-ins/NativeErrors/RangeError/length.js index ce9f6d7f13..93ea9f0f51 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/RangeError/length.js +++ b/js/src/tests/test262/built-ins/NativeErrors/RangeError/length.js @@ -25,10 +25,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.length, 1); - -verifyNotEnumerable(RangeError, "length"); -verifyNotWritable(RangeError, "length"); -verifyConfigurable(RangeError, "length"); +verifyProperty(RangeError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/NativeErrors/RangeError/name.js b/js/src/tests/test262/built-ins/NativeErrors/RangeError/name.js index 621b07684c..5e78532fd4 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/RangeError/name.js +++ b/js/src/tests/test262/built-ins/NativeErrors/RangeError/name.js @@ -17,10 +17,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.name, "RangeError"); - -verifyNotEnumerable(RangeError, "name"); -verifyNotWritable(RangeError, "name"); -verifyConfigurable(RangeError, "name"); +verifyProperty(RangeError, "name", { + value: "RangeError", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/NativeErrors/RangeError/prototype/name.js b/js/src/tests/test262/built-ins/NativeErrors/RangeError/prototype/name.js index 24d76f4949..1aa3f5ddc4 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/RangeError/prototype/name.js +++ b/js/src/tests/test262/built-ins/NativeErrors/RangeError/prototype/name.js @@ -17,10 +17,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(RangeError.prototype.name, "RangeError"); - -verifyNotEnumerable(RangeError.prototype, "name"); -verifyWritable(RangeError.prototype, "name"); -verifyConfigurable(RangeError.prototype, "name"); +verifyProperty(RangeError.prototype, "name", { + value: "RangeError", + writable: true, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |