(
Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)
| 243 | } |
| 244 | |
| 245 | private static Object exp( |
| 246 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |
| 247 | double x = ScriptRuntime.toNumber(args, 0); |
| 248 | x = |
| 249 | (x == Double.POSITIVE_INFINITY) |
| 250 | ? x |
| 251 | : (x == Double.NEGATIVE_INFINITY) ? 0.0 : Math.exp(x); |
| 252 | return ScriptRuntime.wrapNumber(x); |
| 253 | } |
| 254 | |
| 255 | private static Object expm1( |
| 256 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |
no test coverage detected