Permalink
Browse files

Perlito5 - fix Javascript IO.slurp

  • Loading branch information...
1 parent 5f05ab3 commit 8b2a08fe787c39f4a32939cf07acea22bbddf2c1 @fglock committed Dec 21, 2011
Showing with 14 additions and 2 deletions.
  1. +12 −0 README-perlito5
  2. +1 −1 lib5/Perlito5/Javascript/Runtime.js
  3. +1 −1 src5/lib/Perlito5/Javascript/Runtime.js
View
@@ -0,0 +1,12 @@
+Running the tests using perl:
+
+find t5/*.t | perl -ne ' print "*** $_"; chomp; print ` perl -Ilib5 perlito5.pl -Cperl5 $_ > x && perl -Ilib5 x ` '
+
+Running the tests using v8:
+
+find t5/*.t | perl -ne ' print "*** $_"; chomp; print ` perl -Ilib5 perlito5.pl -Cjs $_ > tmp.js && ~/bin/d8 tmp.js ` '
+
+Compile the compiler to Javascript:
+
+perl -Ilib5 perlito5.pl -Cjs src5/util/perlito5.pl > perlito5.js
+
@@ -38,7 +38,7 @@ if (typeof IO !== 'object') {
IO = new IO;
}
-IO.slurp = function(filename) {
+IO.slurp = function(v_callsub, filename) {
if (typeof readFile == 'function') {
return readFile(filename);
}
@@ -38,7 +38,7 @@ if (typeof IO !== 'object') {
IO = new IO;
}
-IO.slurp = function(filename) {
+IO.slurp = function(v_callsub, filename) {
if (typeof readFile == 'function') {
return readFile(filename);
}

0 comments on commit 8b2a08f

Please sign in to comment.