diff options
Diffstat (limited to 'JavaScriptCore/runtime/BooleanConstructor.cpp')
-rw-r--r-- | JavaScriptCore/runtime/BooleanConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/JavaScriptCore/runtime/BooleanConstructor.cpp b/JavaScriptCore/runtime/BooleanConstructor.cpp index 07bcc97..bc12858 100644 --- a/JavaScriptCore/runtime/BooleanConstructor.cpp +++ b/JavaScriptCore/runtime/BooleanConstructor.cpp @@ -57,9 +57,9 @@ ConstructType BooleanConstructor::getConstructData(ConstructData& constructData) } // ECMA 15.6.1 -static JSValue JSC_HOST_CALL callBooleanConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args) +static JSValue JSC_HOST_CALL callBooleanConstructor(ExecState* exec) { - return jsBoolean(args.at(0).toBoolean(exec)); + return jsBoolean(exec->argument(0).toBoolean(exec)); } CallType BooleanConstructor::getCallData(CallData& callData) |