MCPcopy Create free account
hub / github.com/NativeScript/android / getObject

Function getObject

test-app/app/src/main/assets/app/tests/testGC.js:232–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 xit("should persist JavaScript object when it reappears after GC", function () {
231
232 function getObject() {
233 var o = new java.lang.Object();
234 o.x = 123;
235 var arr = java.lang.reflect.Array.newInstance(java.lang.Object.class, 1);
236 arr[0] = o;
237 return arr;
238 }
239
240 var arr = getObject();
241 gc();

Callers 1

testGC.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected