Index: Source/modules/imagebitmap/ImageBitmapFactories.cpp |
diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.cpp b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
index 14a826955cfce1e6cf72f8ea9fa76e88289b0a38..76ae2684c4b977a173a58addfeb3df5a1f09ec4f 100644 |
--- a/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
+++ b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
@@ -318,8 +318,9 @@ void ImageBitmapFactories::ImageBitmapLoader::loadBlobAsync(ScriptExecutionConte |
void ImageBitmapFactories::ImageBitmapLoader::rejectPromise() |
{ |
+ v8::Isolate* isolate = m_scriptState->isolate(); |
ScriptScope scope(m_scriptState); |
- m_resolver->reject(ScriptValue::createNull()); |
+ m_resolver->reject(ScriptValue(v8::Null(isolate), isolate)); |
m_factory->didFinishLoading(this); |
} |