mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
rebuilding browser coffee-script.js ... all tests pass.
This commit is contained in:
@@ -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';"
|
||||
|
||||
Reference in New Issue
Block a user