diff options
author | Linus Groh <mail@linusgroh.de> | 2020-04-01 21:00:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-01 22:09:37 +0200 |
commit | a0da97cb5a18f038266b1babf127c00befe11a88 (patch) | |
tree | f489e95b39531c063cfd5ec8219071e628655561 /Libraries/LibJS/Runtime/GlobalObject.cpp | |
parent | 2577712a1c680f0dae93b9de6e81a7999c608469 (diff) | |
download | serenity-a0da97cb5a18f038266b1babf127c00befe11a88.zip |
LibJS: Add NaN to global object
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/GlobalObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/GlobalObject.cpp b/Libraries/LibJS/Runtime/GlobalObject.cpp index 4c3b4daa55..c09c5ce3cd 100644 --- a/Libraries/LibJS/Runtime/GlobalObject.cpp +++ b/Libraries/LibJS/Runtime/GlobalObject.cpp @@ -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>()); |