Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 7a5541bc8900d39223ee3be00eb247e9bcc691fd..a5e1e5c885156e2e435a643f6fde5ab6f17a13b1 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -112,8 +112,7 @@ static Handle<Code> MakeCode(FunctionLiteral* literal, |
FastCodeGenSyntaxChecker checker; |
checker.Check(literal, info); |
if (checker.has_supported_syntax()) { |
- // Does not yet generate code. |
- FastCodeGenerator::MakeCode(literal, script, is_eval, info); |
+ return FastCodeGenerator::MakeCode(literal, script, is_eval, info); |
} |
} |
@@ -490,8 +489,8 @@ Handle<JSFunction> Compiler::BuildBoilerplate(FunctionLiteral* literal, |
FastCodeGenSyntaxChecker checker; |
checker.Check(literal, &info); |
if (checker.has_supported_syntax()) { |
- // Does not yet generate code. |
- FastCodeGenerator::MakeCode(literal, script, false, &info); |
+ code = FastCodeGenerator::MakeCode(literal, script, false, &info); |
+ is_compiled = true; |
} |
} |