1 // GENERATED, DO NOT EDIT
2 // file: isConstructor.js
3 // Copyright (C) 2017 André Bargull. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
8 Test if a given function is a constructor function.
9 defines: [isConstructor]
10 features: [Reflect.construct]
13 function isConstructor(f) {
14 if (typeof f !== "function") {
15 throw new Test262Error("isConstructor invoked with a non-function value");
19 Reflect.construct(function(){}, [], f);