42
47
if (!IS_SPEC_FUNCTION(callTrap))
43
48
throw MakeTypeError("trap_function_expected", ["createFunction", "call"])
44
49
if (IS_UNDEFINED(constructTrap)) {
55
return %Apply(construct, void 0, arguments, 0, %_ArgumentsLength());
47
58
throw MakeTypeError("trap_function_expected",
48
59
["createFunction", "construct"])