(Context cx, VarScope scope, boolean sealed)
| 60 | } |
| 61 | |
| 62 | public static void init(Context cx, VarScope scope, boolean sealed) { |
| 63 | var ctor = new LambdaConstructor(scope, "JavaAdapter", 1, JavaAdapter::js_createAdapter); |
| 64 | |
| 65 | if (sealed) { |
| 66 | ctor.sealObject(); |
| 67 | } |
| 68 | |
| 69 | ScriptableObject.defineProperty(scope, "JavaAdapter", ctor, DONTENUM); |
| 70 | } |
| 71 | |
| 72 | public static Object convertResult(Object result, Class<?> c) { |
| 73 | if (result == Undefined.instance |
nothing calls this directly
no test coverage detected