X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..ba379fdc102753d6be2c4d937058fe40257329fe:/runtime/ObjectConstructor.cpp diff --git a/runtime/ObjectConstructor.cpp b/runtime/ObjectConstructor.cpp index 2d61127..cf1790f 100644 --- a/runtime/ObjectConstructor.cpp +++ b/runtime/ObjectConstructor.cpp @@ -21,6 +21,7 @@ #include "config.h" #include "ObjectConstructor.h" +#include "JSFunction.h" #include "JSGlobalObject.h" #include "ObjectPrototype.h" @@ -41,7 +42,7 @@ ObjectConstructor::ObjectConstructor(ExecState* exec, PassRefPtr stru // ECMA 15.2.2 static ALWAYS_INLINE JSObject* constructObject(ExecState* exec, const ArgList& args) { - JSValuePtr arg = args.at(exec, 0); + JSValue arg = args.at(0); if (arg.isUndefinedOrNull()) return new (exec) JSObject(exec->lexicalGlobalObject()->emptyObjectStructure()); return arg.toObject(exec); @@ -58,7 +59,7 @@ ConstructType ObjectConstructor::getConstructData(ConstructData& constructData) return ConstructTypeHost; } -static JSValuePtr callObjectConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args) +static JSValue JSC_HOST_CALL callObjectConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args) { return constructObject(exec, args); }