Built-in function %ThrowTypeError% is incorrectly recognized as a constructor #903
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Environment: XS 11.6.0 32 4
Description
Steps to Reproduce
Expected behavior
Output should be an empty array.
Other information
Per https://tc39.es/ecma262/#sec-built-in-function-objects , "Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function." There is no such specification at https://tc39.es/ecma262/multipage/ordinary-and-exotic-objects-behaviours.html#sec-%throwtypeerror% , so the %ThrowTypeError% built-in function should not have a [[Construct]] method and attempts to construct with it such as in the above code should fail with a TypeError exception per https://tc39.es/ecma262/multipage/reflection.html#sec-reflect.construct .
The text was updated successfully, but these errors were encountered: