compile: Compile the correct data (fixes a traceback if there is a shebang in the input)

Sun, 26 Jul 2009 14:46:23 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 26 Jul 2009 14:46:23 +0100
changeset 26
a22604b2f5f3
parent 25
a4972a690064
child 27
0718b469099d

compile: Compile the correct data (fixes a traceback if there is a shebang in the input)

compile/squish.compile.lua file | annotate | diff | comparison | revisions
--- a/compile/squish.compile.lua	Sun Jul 26 14:45:45 2009 +0100
+++ b/compile/squish.compile.lua	Sun Jul 26 14:46:23 2009 +0100
@@ -33,7 +33,7 @@
 		outfile:write(shebang)
 	end
 
-	outfile:write(compile_string(data, outfile_fn));
+	outfile:write(compile_string(code, outfile_fn));
 	
 	os.rename(outfile_fn..".compiled", outfile_fn);
 end

mercurial