MCPcopy Create free account
hub / github.com/dynjs/dynjs / IRJSFunction

Method IRJSFunction

src/main/java/org/dynjs/ir/IRJSFunction.java:38–45  ·  view source on GitHub ↗
(FunctionScope scope, VariableValues capturedValues, LexicalEnvironment lexicalEnvironment,
                        GlobalContext globalContext)

Source from the content-addressed store, hash-verified

36 private IRJSFunctionBox box = new IRJSFunctionBox();
37
38 public IRJSFunction(FunctionScope scope, VariableValues capturedValues, LexicalEnvironment lexicalEnvironment,
39 GlobalContext globalContext) {
40 super(globalContext);
41 this.scope = scope;
42 this.instructions = scope.prepareForInterpret(); // FIXME This is a big up front cost...make lazy
43 this.lexicalEnvironment = lexicalEnvironment;
44 this.capturedValues = capturedValues;
45 }
46
47 public String[] getFormalParameters() {
48 return scope.getParameterNames();

Callers

nothing calls this directly

Calls 1

prepareForInterpretMethod · 0.80

Tested by

no test coverage detected