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

Method call

src/main/java/org/dynjs/runtime/modules/JavaFunction.java:44–52  ·  view source on GitHub ↗
(ExecutionContext context, Object self, Object... arguments)

Source from the content-addressed store, hash-verified

42 }
43
44 @Override
45 public Object call(ExecutionContext context, Object self, Object... arguments) {
46 try {
47 List<Object> newArgs = buildArguments(context, self, arguments);
48 return this.handle.invokeWithArguments(newArgs.toArray());
49 } catch (Throwable e) {
50 throw new DynJSException(e);
51 }
52 }
53
54 private List<Object> buildArguments(ExecutionContext context, Object self, Object... args) {
55 List<Object> newArgs = new ArrayList<Object>();

Callers

nothing calls this directly

Calls 2

buildArgumentsMethod · 0.95
toArrayMethod · 0.80

Tested by

no test coverage detected