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)); |
} |