mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibJS: Add NaN to global object
This commit is contained in:
parent
2577712a1c
commit
a0da97cb5a
2 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,7 @@ GlobalObject::GlobalObject()
|
|||
put_native_function("gc", gc);
|
||||
put_native_function("isNaN", is_nan);
|
||||
|
||||
put("NaN", js_nan());
|
||||
put("console", heap().allocate<ConsoleObject>());
|
||||
put("Date", heap().allocate<DateConstructor>());
|
||||
put("Error", heap().allocate<ErrorConstructor>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue