src/BytecodeCompiler.cpp
changeset 137 be919b22085b
parent 92 e3974e7360e9
child 142 a000bafece09
     1.1 --- a/src/BytecodeCompiler.cpp	Sun Jul 29 19:47:31 2012 -0700
     1.2 +++ b/src/BytecodeCompiler.cpp	Mon Jul 30 00:03:46 2012 -0700
     1.3 @@ -869,6 +869,9 @@
     1.4  void
     1.5  BytecodeCompiler::visit(FunctionStatement *node)
     1.6  {
     1.7 +    if (!node->fun()->used())
     1.8 +        return;
     1.9 +
    1.10      if (node->fun()->isNative()) {
    1.11          assert(!moduleData_->natives->at(node->fun()->slot()));
    1.12