diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-02-24 13:14:59 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-02-24 13:14:59 -0800 |
commit | e33e7d1a3712add02cd08c0069bb56ba76e49aa5 (patch) | |
tree | 3cd8937acf1e3b27a265e42bf3d42241d51f6c1a /deps/v8/src/execution.cc | |
parent | 2680522d3a71fb5f12aa052555f3d04806338821 (diff) | |
download | node-e33e7d1a3712add02cd08c0069bb56ba76e49aa5.tar.gz |
Upgrade V8 to 3.1.6
Diffstat (limited to 'deps/v8/src/execution.cc')
-rw-r--r-- | deps/v8/src/execution.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/execution.cc b/deps/v8/src/execution.cc index f484d8d9b..de8f0a466 100644 --- a/deps/v8/src/execution.cc +++ b/deps/v8/src/execution.cc @@ -106,6 +106,11 @@ static Handle<Object> Invoke(bool construct, ASSERT(*has_pending_exception == Top::has_pending_exception()); if (*has_pending_exception) { Top::ReportPendingMessages(); + if (Top::pending_exception() == Failure::OutOfMemoryException()) { + if (!HandleScopeImplementer::instance()->ignore_out_of_memory()) { + V8::FatalProcessOutOfMemory("JS", true); + } + } return Handle<Object>(); } else { Top::clear_pending_message(); |