MCPcopy Index your code
hub / github.com/mozilla/rhino / exec

Method exec

rhino/src/main/java/org/mozilla/javascript/JSScript.java:31–45  ·  view source on GitHub ↗
(Context cx, VarScope scope, Scriptable thisObj)

Source from the content-addressed store, hash-verified

29 }
30
31 @Override
32 public Object exec(Context cx, VarScope scope, Scriptable thisObj) {
33 Object ret;
34 if (!ScriptRuntime.hasTopCall(cx)) {
35 // It will go through "call" path. but they are equivalent
36 ret = ScriptRuntime.doTopCall(this, cx, scope, thisObj, descriptor.isStrict());
37 cx.processMicrotasks();
38 } else {
39 ret =
40 descriptor
41 .getCode()
42 .execute(cx, this, null, scope, thisObj, ScriptRuntime.emptyArgs);
43 }
44 return ret;
45 }
46}

Callers

nothing calls this directly

Calls 6

hasTopCallMethod · 0.95
doTopCallMethod · 0.95
processMicrotasksMethod · 0.80
executeMethod · 0.65
isStrictMethod · 0.45
getCodeMethod · 0.45

Tested by

no test coverage detected