X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=cb6e680e5e234c7d0dbd9d80e558517bf0c34cc1;hb=73131826a18c93af4fb04672bc3ec820e1197ad1;hp=538fc1aa27d0d0ff80757e2abc53efb78ebb180a;hpb=19d66e161db458135518efd3539048f44e1e5622;p=org.ibex.js.git diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index 538fc1a..cb6e680 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -1,4 +1,7 @@ -// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache Public Source License 2.0 ("the License"). +// You may not use this file except in compliance with the License. + package org.ibex.js; import org.ibex.util.*; @@ -133,8 +136,8 @@ public abstract class JS { boolean get; switch(i.f.op[i.pc]) { case Tokens.RETURN: case ByteCodes.PUT: get = false; break; - case ByteCodes.GET: case ByteCodes.CALL: get = true; break; - default: throw new Error("should never happen"); + case ByteCodes.GET: case ByteCodes.CALL: case ByteCodes.CALLMETHOD: get = true; break; + default: throw new Error("should never happen: i.f.op[i.pc] == " + i.f.op[i.pc]); } i.pausecount++; return new JS.UnpauseCallback(i,get);