Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 1b5427fea750604a2bafad65b8a2fbe9a1264f5a..5a1461f1021858b4ac30b328f74cefa57cbfdb45 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1576,14 +1576,13 @@ class StackLimitCheck BASE_EMBEDDED { |
Isolate* isolate_; |
}; |
-#define STACK_CHECK(isolate, result_value) \ |
- do { \ |
- StackLimitCheck stack_check(isolate); \ |
- if (stack_check.HasOverflowed()) { \ |
- isolate->Throw(*isolate->factory()->NewRangeError( \ |
- MessageTemplate::kStackOverflow)); \ |
- return result_value; \ |
- } \ |
+#define STACK_CHECK(isolate, result_value) \ |
+ do { \ |
+ StackLimitCheck stack_check(isolate); \ |
+ if (stack_check.HasOverflowed()) { \ |
+ isolate->StackOverflow(); \ |
+ return result_value; \ |
+ } \ |
} while (false) |
// Support for temporarily postponing interrupts. When the outermost |