summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/NumberConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/NumberConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/NumberConstructor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/Runtime/NumberConstructor.cpp b/Libraries/LibJS/Runtime/NumberConstructor.cpp
index a96d710523..dcd9187c37 100644
--- a/Libraries/LibJS/Runtime/NumberConstructor.cpp
+++ b/Libraries/LibJS/Runtime/NumberConstructor.cpp
@@ -65,11 +65,11 @@ NumberConstructor::~NumberConstructor()
{
}
-Value NumberConstructor::call(Interpreter& interpreter)
+Value NumberConstructor::call()
{
- if (!interpreter.argument_count())
+ if (!vm().argument_count())
return Value(0);
- return interpreter.argument(0).to_number(interpreter);
+ return vm().argument(0).to_number(interpreter());
}
Value NumberConstructor::construct(Interpreter& interpreter, Function&)