diff --git a/src/me/topchetoeu/jscript/engine/Context.java b/src/me/topchetoeu/jscript/engine/Context.java index c287c3e..3ddd4ff 100644 --- a/src/me/topchetoeu/jscript/engine/Context.java +++ b/src/me/topchetoeu/jscript/engine/Context.java @@ -40,7 +40,7 @@ public class Context { else source = Values.toString(this, transpiled); var breakpoints = new TreeSet(); - FunctionValue res = Parsing.compile(engine.functions, breakpoints, environment(), filename, source); + FunctionValue res = Parsing.compile(Engine.functions, breakpoints, environment(), filename, source); engine.onSource(filename, source, breakpoints); if (runner != null) res = (FunctionValue)runner.call(this, null, res); diff --git a/src/me/topchetoeu/jscript/engine/frame/Runners.java b/src/me/topchetoeu/jscript/engine/frame/Runners.java index 84758fd..fc76a4e 100644 --- a/src/me/topchetoeu/jscript/engine/frame/Runners.java +++ b/src/me/topchetoeu/jscript/engine/frame/Runners.java @@ -4,6 +4,7 @@ import java.util.Collections; import me.topchetoeu.jscript.compilation.Instruction; import me.topchetoeu.jscript.engine.Context; +import me.topchetoeu.jscript.engine.Engine; import me.topchetoeu.jscript.engine.Operation; import me.topchetoeu.jscript.engine.scope.ValueVariable; import me.topchetoeu.jscript.engine.values.ArrayValue; @@ -186,7 +187,7 @@ public class Runners { captures[i - 3] = frame.scope.get(instr.get(i)); } - var body = ctx.engine.functions.get(id); + var body = Engine.functions.get(id); var func = new CodeFunction(ctx.environment(), "", localsN, len, captures, body); frame.push(ctx, func);