Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index f59830ed4ce08eec1663eb0267ee863bc604e06a..6131a764b7ef800e15db722061504c1243cc5e12 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1541,7 +1541,7 @@ bool Genesis::CompileNative(Isolate* isolate, Vector<const char> name, |
// environment has been at least partially initialized. Add a stack check |
// before entering JS code to catch overflow early. |
StackLimitCheck check(isolate); |
- if (check.HasOverflowed()) { |
+ if (check.JsHasOverflowed(1 * KB)) { |
isolate->StackOverflow(); |
return false; |
} |