Skip to content

Commit

Permalink
fix operator in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Jul 30, 2011
1 parent b4cc506 commit bac9c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RubyVM.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ HotRuby.prototype = {
*/
mainLoop : function(opcode, sf) {
// Create label to ip
if(!("label2ip" in opcode)) {
if(typeof(opcode.label2ip) != 'undefined') { // label2ip in opcode would throw exception
opcode.label2ip = {};
for (var ip = 0;ip < opcode.length; ip++) {
// If "cmd is a String then it is a jump label
Expand Down

0 comments on commit bac9c18

Please sign in to comment.