summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-04 14:13:53 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-04 15:58:49 +0200
commitcd3e2690eb2b10c4cea613f04777a4331e7dd9c7 (patch)
tree56164de17558d69fb8e1ff76544621981498dcfa /Libraries/LibJS/Runtime/GlobalObject.cpp
parentb3c45149020d3af76a42e7e8b910583e9dcdb1e1 (diff)
downloadserenity-cd3e2690eb2b10c4cea613f04777a4331e7dd9c7.zip
LibJS: Set length property in Object::put_native_function()
Diffstat (limited to 'Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Libraries/LibJS/Runtime/GlobalObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/GlobalObject.cpp b/Libraries/LibJS/Runtime/GlobalObject.cpp
index 335001127f..452877f78d 100644
--- a/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -16,7 +16,7 @@ namespace JS {
GlobalObject::GlobalObject()
{
put_native_function("gc", gc);
- put_native_function("isNaN", is_nan);
+ put_native_function("isNaN", is_nan, 1);
// FIXME: These are read-only in ES5
put("NaN", js_nan());