summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-01 21:00:09 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-01 22:09:37 +0200
commita0da97cb5a18f038266b1babf127c00befe11a88 (patch)
treef489e95b39531c063cfd5ec8219071e628655561 /Libraries/LibJS/Runtime/GlobalObject.cpp
parent2577712a1c680f0dae93b9de6e81a7999c608469 (diff)
downloadserenity-a0da97cb5a18f038266b1babf127c00befe11a88.zip
LibJS: Add NaN to global object
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Libraries/LibJS/Runtime/GlobalObject.cpp1
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>());