Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8cdd3912390e302807f78e4901efc46be9794582..0bc93c2ff252635e7d5fe4dafcb2b8b06f63eb7d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4630,7 +4630,9 @@ void* External::Value() const { |
Local<String> v8::String::Empty() { |
i::Isolate* isolate = i::Isolate::Current(); |
- EnsureInitializedForIsolate(isolate, "v8::String::Empty()"); |
+ if (!EnsureInitializedForIsolate(isolate, "v8::String::Empty()")) { |
Sven Panne
2012/04/25 06:56:22
Just out of curiosity: Why do we need this change?
Michael Starzinger
2012/04/25 08:18:31
Yes, IMHO we need this change in tons of other pla
|
+ return v8::Local<String>(); |
+ } |
LOG_API(isolate, "String::Empty()"); |
return Utils::ToLocal(isolate->factory()->empty_symbol()); |
} |