1.1 --- a/jitcraft/BytecodeCompiler.cpp Sun Jul 08 15:23:48 2012 -0700
1.2 +++ b/jitcraft/BytecodeCompiler.cpp Sun Jul 08 16:49:17 2012 -0700
1.3 @@ -654,6 +654,12 @@
1.4 void
1.5 BytecodeCompiler::visit(FunctionStatement *node)
1.6 {
1.7 + // If the function has no body, then it's just a declaration.
1.8 + if (!node->body()) {
1.9 + assert(node->fun()->isForward() || node->fun()->isPublic());
1.10 + return;
1.11 + }
1.12 +
1.13 BytecodeCompiler child(zone_, tree_, module_);
1.14 Local<Function> fun(zone_, child.compileFunction(module_, node));
1.15 if (!fun)