diff --git a/test/built-ins/Error/prototype/properties.js b/test/built-ins/Error/prototype/properties.js new file mode 100644 index 00000000000..d9437feb7d2 --- /dev/null +++ b/test/built-ins/Error/prototype/properties.js @@ -0,0 +1,19 @@ +// Copyright (C) 2021 Chengzhong Wu. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Error prototype properties +esid: sec-properties-of-the-error-prototype-object +includes: [propertyHelper.js] +---*/ + +const desc = { + writable: true, + enumerable: false, + configurable: true +}; +verifyProperty(Error.prototype, 'cause', undefined); +verifyProperty(Error.prototype, 'constructor', desc); +verifyProperty(Error.prototype, 'name', desc); +verifyProperty(Error.prototype, 'message', desc); +verifyProperty(Error.prototype, 'toString', desc);