Revision: 1687 http://svn.sourceforge.net/vexi/?rev=1687&view=rev Author: mkpg2 Date: 2007-02-21 02:20:33 -0800 (Wed, 21 Feb 2007)
Log Message: ----------- Add function type as possible type to typeof bytecode Modified Paths: -------------- core/trunk/org.ibex.js/src/org/ibex/js/Constants.java core/trunk/org.ibex.js/src/org/ibex/js/Interpreter.jpp Modified: core/trunk/org.ibex.js/src/org/ibex/js/Constants.java =================================================================== --- core/trunk/org.ibex.js/src/org/ibex/js/Constants.java 2007-02-19 16:52:20 UTC (rev 1686) +++ core/trunk/org.ibex.js/src/org/ibex/js/Constants.java 2007-02-21 10:20:33 UTC (rev 1687) @@ -10,6 +10,7 @@ static final JS SC_exception = JSU.S("exception",true); static final JS SC_exec = JSU.S("exec",true); static final JS SC_faultString = JSU.S("faultString",true); + static final JS SC_function = JSU.S("function",true); static final JS SC_hasNext = JSU.S("hasNext",true); static final JS SC_index = JSU.S("index",true); static final JS SC_input = JSU.S("input",true); Modified: core/trunk/org.ibex.js/src/org/ibex/js/Interpreter.jpp =================================================================== --- core/trunk/org.ibex.js/src/org/ibex/js/Interpreter.jpp 2007-02-19 16:52:20 UTC (rev 1686) +++ core/trunk/org.ibex.js/src/org/ibex/js/Interpreter.jpp 2007-02-21 10:20:33 UTC (rev 1687) @@ -146,6 +146,7 @@ else if (o instanceof JSNumber) stack.push(SC_number); else if (o instanceof JSExn.ExnJSObj) stack.push(SC_exception); else if (o instanceof JSArray) stack.push(SC_array); + else if (o instanceof JSFunction) stack.push(SC_function); else stack.push(SC_object); break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn