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

Method call

rhino/src/main/java/org/mozilla/javascript/JSFunction.java:138–145  ·  view source on GitHub ↗
(Context cx, VarScope scope, Scriptable thisObj, Object[] args)

Source from the content-addressed store, hash-verified

136 }
137
138 @Override
139 public Object call(Context cx, VarScope scope, Scriptable thisObj, Object[] args) {
140 if (!ScriptRuntime.hasTopCall(cx)) {
141 return ScriptRuntime.doTopCall(this, cx, scope, thisObj, args, isStrict());
142 }
143 var realThis = getThisObj(thisObj);
144 return descriptor.getCode().execute(cx, this, Undefined.instance, scope, realThis, args);
145 }
146
147 public final Scriptable getThisObj(Scriptable thisObj) {
148 if (descriptor.hasLexicalThis()) {

Callers

nothing calls this directly

Calls 6

hasTopCallMethod · 0.95
doTopCallMethod · 0.95
isStrictMethod · 0.95
getThisObjMethod · 0.95
executeMethod · 0.65
getCodeMethod · 0.45

Tested by

no test coverage detected