MCPcopy Create free account
hub / github.com/FongMi/TV / createFun

Method createFun

quickjs/src/main/java/com/fongmi/quickjs/crawler/Spider.java:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 private void createFun() {
180 try {
181 global = Global.create(ctx, executor);
182 Class<?> clz = dex.loadClass("com.github.catvod.js.Function");
183 clz.getDeclaredConstructor(QuickJSContext.class).newInstance(ctx);
184 } catch (Throwable ignored) {
185 }
186 }
187
188 private void createObj() {
189 String spider = "__JS_SPIDER__";

Callers 1

initializeJSMethod · 0.95

Calls 2

createMethod · 0.95
newInstanceMethod · 0.45

Tested by

no test coverage detected