Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: src/api.cc

Issue 194070: Fix crash during error reporting during bootstrapping. (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 1128d3e0222ff72bcb585ce5f92a5ddbdafa1d00..052e875169dca83423298c5e63d84c2e747ea92d 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -2672,9 +2672,7 @@ Persistent<Context> v8::Context::New(
}
// Leave V8.
- if (!ApiCheck(!env.is_null(),
- "v8::Context::New()",
- "Could not initialize environment"))
+ if (env.is_null())
return Persistent<Context>();
return Persistent<Context>(Utils::ToLocal(env));
}
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698