lib/boojs.rb in boojs-0.0.22 vs lib/boojs.rb in boojs-0.0.24
- old
+ new
@@ -85,9 +85,13 @@
system.stderr.writeLine(t.file + ': line ' + t.line );
})
system.stderr.writeLine("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
phantom.exit(1);
}
+
+ function booPing() {
+ console.log("pong");
+ }
}
#Any code the user wanted
js += "\n#{str}" if str