// Generate code and return it.
Handle<Code> result = CodeGenerator::MakeCode(literal, script, is_eval);
- // Check for stack-overflow exception.
- if (result.is_null()) {
- Top::StackOverflow();
- Top::ReportPendingMessages();
- }
return result;
}
// Check for stack-overflow exceptions.
if (code.is_null()) {
+ Top::StackOverflow();
+ Top::ReportPendingMessages();
return Handle<JSFunction>::null();
}
}
}
- if (result.is_null()) Top::ReportPendingMessages();
-
return result;
}
}
}
- if (result.is_null()) Top::ReportPendingMessages();
-
return result;
}
// Compile the code.
Handle<Code> code = MakeCode(lit, script, false);
+ // Check for stack-overflow exception.
if (code.is_null()) {
+ Top::StackOverflow();
+ Top::ReportPendingMessages();
return false;
}