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

Method call

src/main/java/org/dynjs/runtime/builtins/math/Log.java:16–23  ·  view source on GitHub ↗
(ExecutionContext context, Object self, Object... args)

Source from the content-addressed store, hash-verified

14 }
15
16 @Override
17 public Object call(ExecutionContext context, Object self, Object... args) {
18 if (DynNumber.isNaN(args[0])) {
19 return Double.NaN;
20 }
21 final Double arg = Types.toNumber(context, args[0]).doubleValue();
22 return Math.coerceLongIfPossible(java.lang.Math.log(arg));
23 }
24
25 @Override
26 public void setFileName() {

Callers

nothing calls this directly

Calls 4

isNaNMethod · 0.95
toNumberMethod · 0.95
coerceLongIfPossibleMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected