rebuilding browser coffee-script.js ... all tests pass.

This commit is contained in:
Jeremy Ashkenas
2010-12-06 23:21:55 -05:00
parent ec64646fee
commit 3eac6aeb99
2 changed files with 1 additions and 8 deletions

View File

@@ -1,5 +1,3 @@
{ exec } = require 'child_process'
# Ensure that carriage returns don't break compilation on Windows.
eq CoffeeScript.compile('one\r\ntwo', bare: on), 'one;\ntwo;'
@@ -15,8 +13,3 @@ catch e then eq e.message, 'unclosed CALL_START on line 1'
eq CoffeeScript.compile('for k of o then', bare: on, globals: on),
'for (k in o) {}'
#875: %d and %s in strings causes node.js to apply formatting
cmd = process.argv[1].replace /cake$/, 'coffee'
exec "#{cmd} -bpe \"'%d isnt %s'\"", (error, stdout, stderr) ->
throw error if error
eq stdout.trim(), "'%d isnt %s';"