Index: Source/bindings/v8/V8NPObject.cpp |
diff --git a/Source/bindings/v8/V8NPObject.cpp b/Source/bindings/v8/V8NPObject.cpp |
index e5aaf6e480f6d582aa50523dd5fa38d89180ee58..45df224d55a5ed41887bfc7d48903f6532b23fab 100644 |
--- a/Source/bindings/v8/V8NPObject.cpp |
+++ b/Source/bindings/v8/V8NPObject.cpp |
@@ -281,7 +281,7 @@ void npObjectNamedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyC |
void npObjectIndexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
NPIdentifier identifier = _NPN_GetIntIdentifier(index); |
- v8SetReturnValue(info, npObjectGetProperty(info.Holder(), identifier, v8::Number::New(index), info.GetIsolate())); |
+ v8SetReturnValue(info, npObjectGetProperty(info.Holder(), identifier, v8::Number::New(info.GetIsolate(), index), info.GetIsolate())); |
} |
void npObjectGetNamedProperty(v8::Local<v8::Object> self, v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -293,7 +293,7 @@ void npObjectGetNamedProperty(v8::Local<v8::Object> self, v8::Local<v8::String> |
void npObjectGetIndexedProperty(v8::Local<v8::Object> self, uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
NPIdentifier identifier = _NPN_GetIntIdentifier(index); |
- v8SetReturnValue(info, npObjectGetProperty(self, identifier, v8::Number::New(index), info.GetIsolate())); |
+ v8SetReturnValue(info, npObjectGetProperty(self, identifier, v8::Number::New(info.GetIsolate(), index), info.GetIsolate())); |
} |
void npObjectQueryProperty(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Integer>& info) |