mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibJS: Add Function.prototype and make "new" Objects delegate to it
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibJS/Runtime/Function.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
|
||||
@@ -31,6 +33,7 @@ namespace JS {
|
||||
|
||||
Function::Function()
|
||||
{
|
||||
put("prototype", heap().allocate<Object>());
|
||||
}
|
||||
|
||||
Function::~Function()
|
||||
|
||||
Reference in New Issue
Block a user