mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibJS: Implement Infinity
This commit is contained in:
parent
40b3203941
commit
543c6e00db
Notes:
sideshowbarker
2024-07-19 07:59:06 +09:00
Author: https://github.com/linusg
Commit: 543c6e00db
Pull-request: https://github.com/SerenityOS/serenity/pull/1584
5 changed files with 40 additions and 0 deletions
|
@ -18,7 +18,10 @@ GlobalObject::GlobalObject()
|
|||
put_native_function("gc", gc);
|
||||
put_native_function("isNaN", is_nan);
|
||||
|
||||
// FIXME: These are read-only in ES5
|
||||
put("NaN", js_nan());
|
||||
put("Infinity", js_infinity());
|
||||
|
||||
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