LibJS: Add NaN to global object

This commit is contained in:
Linus Groh 2020-04-01 21:00:09 +01:00 committed by Andreas Kling
commit a0da97cb5a
Notes: sideshowbarker 2024-07-19 08:00:34 +09:00
2 changed files with 5 additions and 0 deletions

View file

@ -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>());