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