Index: Source/bindings/scripts/deprecated_code_generator_v8.pm |
diff --git a/Source/bindings/scripts/deprecated_code_generator_v8.pm b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
index 14fb7f30cac7fefd501d53eb8fcaefb454ef7fbe..e1973715d34cacf44cc6ff67d877bb026f173504 100644 |
--- a/Source/bindings/scripts/deprecated_code_generator_v8.pm |
+++ b/Source/bindings/scripts/deprecated_code_generator_v8.pm |
@@ -5422,13 +5422,13 @@ sub NativeToJSValue |
# long long and unsigned long long are not representable in ECMAScript. |
if ($type eq "long long" or $type eq "unsigned long long" or $type eq "DOMTimeStamp") { |
return "${indent}v8SetReturnValue(${getCallbackInfo}, static_cast<double>($nativeValue));" if $isReturnValue; |
- return "$indent$receiver v8::Number::New(static_cast<double>($nativeValue));"; |
+ return "$indent$receiver v8::Number::New($getIsolate, static_cast<double>($nativeValue));"; |
} |
if (IsPrimitiveType($type)) { |
die "unexpected type $type" if not ($type eq "float" or $type eq "double"); |
return "${indent}v8SetReturnValue(${getCallbackInfo}, ${nativeValue});" if $isReturnValue; |
- return "$indent$receiver v8::Number::New($nativeValue);"; |
+ return "$indent$receiver v8::Number::New($getIsolate, $nativeValue);"; |
} |
if ($nativeType eq "ScriptValue" or $nativeType eq "ScriptPromise") { |