MCPcopy Create free account
hub / github.com/mozilla/rhino / asin

Method asin

rhino/src/main/java/org/mozilla/javascript/NativeMath.java:120–129  ·  view source on GitHub ↗
(
            Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)

Source from the content-addressed store, hash-verified

118 }
119
120 private static Object asin(
121 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {
122 double x = ScriptRuntime.toNumber(args, 0);
123 if (!Double.isNaN(x) && -1.0 <= x && x <= 1.0) {
124 x = Math.asin(x);
125 } else {
126 x = Double.NaN;
127 }
128 return ScriptRuntime.wrapNumber(x);
129 }
130
131 private static Object asinh(
132 Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) {

Callers 3

test-issue-1365.jsFile · 0.80
UFunction · 0.80
15.8.2.3.jsFile · 0.80

Calls 3

toNumberMethod · 0.95
wrapNumberMethod · 0.95
isNaNMethod · 0.45

Tested by

no test coverage detected