Files
ladybird/Libraries/LibJS/Runtime/ObjectConstructor.cpp
Linus Groh 849e2c77e4 LibJS: Implement constructor/non-constructor function calls
This adds Function::construct() for constructor function calls via `new`
keyword. NativeFunction doesn't have constructor behaviour by default,
ScriptFunction simply calls call() in construct()
2020-04-01 20:18:36 +02:00

3.5 KiB