Revision: 3921 http://trac.macosforge.org/projects/ruby/changeset/3921 Author: lsansonetti@apple.com Date: 2010-04-12 22:26:28 -0700 (Mon, 12 Apr 2010) Log Message: ----------- implemented BEGIN{} Modified Paths: -------------- MacRuby/trunk/compiler.cpp Modified: MacRuby/trunk/compiler.cpp =================================================================== --- MacRuby/trunk/compiler.cpp 2010-04-13 01:08:15 UTC (rev 3920) +++ MacRuby/trunk/compiler.cpp 2010-04-13 05:26:28 UTC (rev 3921) @@ -5428,6 +5428,18 @@ } break; + case NODE_PRELUDE: + { + assert(node->nd_head != NULL); + compile_node(node->nd_head); + + if (node->nd_body != NULL) { + compile_node(node->nd_body); + } + + return nilVal; + } + case NODE_POSTEXE: { assert(node->nd_body != NULL);