Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (21 sloc) 658 Bytes
class RewriteAsync {
static var re = ~/(this\.__cnx\.resolve.*?)\.call\(\[(.*?),(.*?)\],null/g;
static function main() {
#if nodejs
file = js.Node.process.argv[2],
content = Std.string(js.Node.fs.readFileSync(file));
js.Node.console.log("tweaking async in "+file);
#elseif neko
file = Sys.args()[0],
content = replace(;,content);
Sys.println("tweaking async in "+file);
static function replace(content) {
return re.replace(content,'$[$2],$3') ;
Jump to Line
Something went wrong with that request. Please try again.