(
Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args)
| 59 | } |
| 60 | |
| 61 | private static Object parse( |
| 62 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |
| 63 | String jtext = ScriptRuntime.toString(args, 0); |
| 64 | Object reviver = null; |
| 65 | if (args.length > 1) { |
| 66 | reviver = args[1]; |
| 67 | } |
| 68 | if (reviver instanceof Callable) { |
| 69 | return parse(cx, f.getDeclarationScope(), jtext, (Callable) reviver); |
| 70 | } |
| 71 | return parse(cx, f.getDeclarationScope(), jtext); |
| 72 | } |
| 73 | |
| 74 | private static Object stringify( |
| 75 | Context cx, JSFunction f, Object nt, VarScope s, Object thisObj, Object[] args) { |
nothing calls this directly
no test coverage detected