Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 08b944a8a1b00fdc3908d9f66d4ea74a76c20245..f2e23f4e4e7b27ed2599f0f84516d5188d89ce23 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -11218,18 +11218,14 @@ class ScopeIterator { |
// Global code |
CompilationInfo info(script); |
info.MarkAsGlobal(); |
- bool result = ParserApi::Parse(&info); |
- ASSERT(result); |
- result = Scope::Analyze(&info); |
- ASSERT(result); |
+ CHECK(ParserApi::Parse(&info)); |
+ CHECK(Scope::Analyze(&info)); |
scope = info.function()->scope(); |
} else { |
// Function code |
CompilationInfo info(shared_info); |
- bool result = ParserApi::Parse(&info); |
- ASSERT(result); |
- result = Scope::Analyze(&info); |
- ASSERT(result); |
+ CHECK(ParserApi::Parse(&info)); |
+ CHECK(Scope::Analyze(&info)); |
scope = info.function()->scope(); |
} |