R=mstarzinger@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/
11412318
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13126
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
Isolate* isolate = Isolate::Current();
ASSERT(isolate->has_pending_exception());
ASSERT(isolate->external_caught_exception());
+ if (isolate->is_out_of_memory() && !isolate->ignore_out_of_memory()) {
+ V8::FatalProcessOutOfMemory("OOM during Execution::TryCall");
+ }
if (isolate->pending_exception() ==
isolate->heap()->termination_exception()) {
result = isolate->factory()->termination_exception();
}
-TEST(DebugContextOOM) {
- v8::HandleScope scope;
- LocalContext context;
- v8::V8::IgnoreOutOfMemoryException();
-
- v8::Local<v8::Value> result = CompileRun("a = '1'; while (true) a += a;");
-
- // Check for out of memory state.
- CHECK(result.IsEmpty());
- CHECK(context->HasOutOfMemoryException());
-
- v8::Debug::GetDebugContext();
-}
-
#endif // ENABLE_DEBUGGER_SUPPORT