MCPcopy Create free account
hub / github.com/dynjs/dynjs / setupConsole

Method setupConsole

src/test/java/org/dynjs/TestRunner.java:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 private void setupConsole() {
101 GlobalContext context = dynjs.getGlobalContext();
102 JSObject object = context.getObject();
103
104 JSObject console = new DynObject( context );
105 console.put( null, "log", new Log( context), false );
106
107 object.put( null, "console", console, false );
108
109 }
110
111 private void setupTimers() {
112 GlobalContext context = dynjs.getGlobalContext();

Callers 1

TestRunnerMethod · 0.95

Calls 4

getObjectMethod · 0.95
putMethod · 0.95
putMethod · 0.95
getGlobalContextMethod · 0.65

Tested by

no test coverage detected