This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello"); | |
function small(a, f) { | |
globalThis.inner = []; | |
globalThis.inner.push( function () { | |
a[f(a)] = a[f(a+0) + 5]; | |
}); | |
} |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello"); | |
var run = true; | |
var ratio = 0.5; | |
if (run) { | |
large([0,1,2,3,4,5], function f(){ return 0; }); | |
for(let i = 0; i < globalThis.inner.length * ratio; ++i) | |
globalThis.inner[i](); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call into a native function that returns an object with all native | |
// functions. | |
let $natives = getNativeFuncs(); | |
function MyClass(a, b) { | |
this.a = a; | |
this.b = b; | |
// The following call performs the native initialization. It creates a | |
// C++ NativeState instance, initializes it with whatever it needs, and | |
// calls jsi::Object::setNativeState() on the object to attach it. |