Index: Source/bindings/v8/V8NPUtils.cpp |
diff --git a/Source/bindings/v8/V8NPUtils.cpp b/Source/bindings/v8/V8NPUtils.cpp |
index 220238307f622c2c71dc1468c7f0c726ea6eb8e0..eb2e1a5cc800951a4e2bb2cf4697ef2c8d301536 100644 |
--- a/Source/bindings/v8/V8NPUtils.cpp |
+++ b/Source/bindings/v8/V8NPUtils.cpp |
@@ -83,13 +83,13 @@ v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant* variant, NPObj |
case NPVariantType_Int32: |
return v8::Integer::New(NPVARIANT_TO_INT32(*variant), isolate); |
case NPVariantType_Double: |
- return v8::Number::New(NPVARIANT_TO_DOUBLE(*variant)); |
+ return v8::Number::New(isolate, NPVARIANT_TO_DOUBLE(*variant)); |
case NPVariantType_Bool: |
- return v8Boolean(NPVARIANT_TO_BOOLEAN(*variant)); |
+ return v8Boolean(NPVARIANT_TO_BOOLEAN(*variant), isolate); |
case NPVariantType_Null: |
- return v8::Null(); |
+ return v8::Null(isolate); |
case NPVariantType_Void: |
- return v8::Undefined(); |
+ return v8::Undefined(isolate); |
case NPVariantType_String: { |
NPString src = NPVARIANT_TO_STRING(*variant); |
return v8::String::New(src.UTF8Characters, src.UTF8Length); |
@@ -98,10 +98,10 @@ v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant* variant, NPObj |
NPObject* object = NPVARIANT_TO_OBJECT(*variant); |
if (V8NPObject* v8Object = npObjectToV8NPObject(object)) |
return v8::Local<v8::Object>::New(isolate, v8Object->v8Object); |
- return createV8ObjectForNPObject(object, owner); |
+ return createV8ObjectForNPObject(object, owner, isolate); |
} |
default: |
- return v8::Undefined(); |
+ return v8::Undefined(isolate); |
} |
} |