Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / NativeErrors / EvalError / is-a-constructor.js
blob220b4c402a309b5521a4e39e1da51c4e2baff8d9
1 // Copyright (C) 2020 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-ecmascript-standard-built-in-objects
6 description: >
7   The EvalError constructor implements [[Construct]]
8 info: |
9   IsConstructor ( argument )
11   The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
12   It determines if argument is a function object with a [[Construct]] internal method.
13   It performs the following steps when called:
15   If Type(argument) is not Object, return false.
16   If argument has a [[Construct]] internal method, return true.
17   Return false.
18 includes: [isConstructor.js]
19 features: [Reflect.construct]
20 ---*/
22 assert.sameValue(isConstructor(EvalError), true, 'isConstructor(EvalError) must return true');
23 new EvalError();
24   
26 reportCompare(0, 0);