diff --git a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js b/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js deleted file mode 100644 index 4b76266125..0000000000 --- a/test/built-ins/Error/prototype/constructor/S15.11.4.1_A1_T1.js +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2009 the Sputnik authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -info: | - The initial value of Error.prototype.constructor is the built-in Error - constructor -es5id: 15.11.4.1_A1_T1 -description: Checking Error.prototype.constructor ----*/ - -////////////////////////////////////////////////////////////////////////////// -//CHECK#1 -if (Error.prototype.constructor !== Error) { - throw new Test262Error('#1: Error.prototype.constructor === Error. Actual: ' + Error.prototype.constructor); -} -// -////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/Error/prototype/constructor/prop-desc.js b/test/built-ins/Error/prototype/constructor/prop-desc.js new file mode 100644 index 0000000000..a5d43791e6 --- /dev/null +++ b/test/built-ins/Error/prototype/constructor/prop-desc.js @@ -0,0 +1,14 @@ +// Copyright (c) 2021 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-error.prototype.constructor +description: Property descriptor of Error.prototype.constructor +includes: [propertyHelper.js] +---*/ + +verifyProperty(Error.prototype, 'constructor', { + enumerable: false, + writable: true, + configurable: true, + value: Error +});