diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp b/Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp index eadb5e6f6..f295ae04e 100644 --- a/Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8ScriptProfileNodeCustom.cpp @@ -55,7 +55,7 @@ v8::Handle<v8::Value> toV8(ScriptProfileNode* impl, v8::Isolate* isolate) v8::Local<v8::Function> function = V8ScriptProfileNode::GetTemplate()->GetFunction(); if (function.IsEmpty()) { // Return if allocation failed. - return v8::Local<v8::Object>(); + return v8Undefined(); } v8::Local<v8::Object> instance = SafeAllocation::newInstance(function); if (instance.IsEmpty()) { |