(
Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)
| 229 | } |
| 230 | |
| 231 | private static Object cos( |
| 232 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |
| 233 | double x = ScriptRuntime.toNumber(args, 0); |
| 234 | x = Double.isInfinite(x) ? Double.NaN : Math.cos(x); |
| 235 | return ScriptRuntime.wrapNumber(x); |
| 236 | } |
| 237 | |
| 238 | private static Object cosh( |
| 239 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |