diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/NativeErrors/TypeError')
3 files changed, 18 insertions, 15 deletions
diff --git a/js/src/tests/test262/built-ins/NativeErrors/TypeError/length.js b/js/src/tests/test262/built-ins/NativeErrors/TypeError/length.js index c84b02708e..f4ca973dac 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/TypeError/length.js +++ b/js/src/tests/test262/built-ins/NativeErrors/TypeError/length.js @@ -25,10 +25,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.length, 1); - -verifyNotEnumerable(TypeError, "length"); -verifyNotWritable(TypeError, "length"); -verifyConfigurable(TypeError, "length"); +verifyProperty(TypeError, "length", { + value: 1, + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/NativeErrors/TypeError/name.js b/js/src/tests/test262/built-ins/NativeErrors/TypeError/name.js index ede2f73af9..8af9b919b1 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/TypeError/name.js +++ b/js/src/tests/test262/built-ins/NativeErrors/TypeError/name.js @@ -17,10 +17,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.name, "TypeError"); - -verifyNotEnumerable(TypeError, "name"); -verifyNotWritable(TypeError, "name"); -verifyConfigurable(TypeError, "name"); +verifyProperty(TypeError, "name", { + value: "TypeError", + writable: false, + enumerable: false, + configurable: true +}); reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/NativeErrors/TypeError/prototype/name.js b/js/src/tests/test262/built-ins/NativeErrors/TypeError/prototype/name.js index c0c0531ff2..04d94af79a 100644 --- a/js/src/tests/test262/built-ins/NativeErrors/TypeError/prototype/name.js +++ b/js/src/tests/test262/built-ins/NativeErrors/TypeError/prototype/name.js @@ -17,10 +17,11 @@ info: | includes: [propertyHelper.js] ---*/ -assert.sameValue(TypeError.prototype.name, "TypeError"); - -verifyNotEnumerable(TypeError.prototype, "name"); -verifyWritable(TypeError.prototype, "name"); -verifyConfigurable(TypeError.prototype, "name"); +verifyProperty(TypeError.prototype, "name", { + value: "TypeError", + writable: true, + enumerable: false, + configurable: true +}); reportCompare(0, 0); |