diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/NumberConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/NumberConstructor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/NumberConstructor.cpp b/Libraries/LibJS/Runtime/NumberConstructor.cpp index 14e6b4cb68..8e2df5a3f0 100644 --- a/Libraries/LibJS/Runtime/NumberConstructor.cpp +++ b/Libraries/LibJS/Runtime/NumberConstructor.cpp @@ -37,8 +37,12 @@ namespace JS { -NumberConstructor::NumberConstructor() - : NativeFunction("Number", *interpreter().global_object().function_prototype()) +NumberConstructor::NumberConstructor(GlobalObject& global_object) + : NativeFunction("Number", *global_object.function_prototype()) +{ +} + +void NumberConstructor::initialize(Interpreter&, GlobalObject&) { u8 attr = Attribute::Writable | Attribute::Configurable; define_native_function("isFinite", is_finite, 1, attr); |