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

Method execute

src/main/java/org/dynjs/runtime/ExecutionContext.java:166–183  ·  view source on GitHub ↗
(JSProgram program)

Source from the content-addressed store, hash-verified

164 // ----------------------------------------------------------------------
165
166 public Completion execute(JSProgram program) {
167 BlockManager originalBlockManager = this.blockManager;
168 try {
169 this.blockManager = program.getBlockManager();
170 ThreadContextManager.pushContext(this);
171 setStrict(program.isStrict());
172 this.fileName = program.getFileName();
173 performDeclarationBindingInstantiation(program);
174 try {
175 return program.execute(this);
176 } catch (ThrowException e) {
177 throw e;
178 }
179 } finally {
180 ThreadContextManager.popContext();
181 this.blockManager = originalBlockManager;
182 }
183 }
184
185 public Object eval(JSProgram eval, boolean direct) {
186 BlockManager originalBlockManager = this.blockManager;

Callers

nothing calls this directly

Calls 8

pushContextMethod · 0.95
setStrictMethod · 0.95
popContextMethod · 0.95
getBlockManagerMethod · 0.65
isStrictMethod · 0.65
getFileNameMethod · 0.65
executeMethod · 0.65

Tested by

no test coverage detected