Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

quick-fix with a different approach

  • Loading branch information...
commit e091c9d6b4fd4ae86b3e61a7f91bbdd109329501 1 parent 57d3cfd
@hden hden authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  src/browser.coffee
  2. +2 −1  src/coffee-script.coffee
View
1  src/browser.coffee
@@ -15,6 +15,7 @@ CoffeeScript.eval = (code, options = {}) ->
# Running code does not provide access to this scope.
CoffeeScript.run = (code, options = {}) ->
options.bare = on
+ options.shiftLine = on
Function(compile code, options)()
# If we're not in a browser environment, we're finished with the public API.
View
3  src/coffee-script.coffee
@@ -36,7 +36,8 @@ exports.compile = compile = (code, options = {}) ->
fragments = (parser.parse lexer.tokenize(code, options)).compileToFragments options
currentLine = 0
- currentLine += 1 if options.header or options.inline
+ currentLine += 1 if options.header
+ currentLine += 1 if options.shiftLine
currentColumn = 0
js = ""
for fragment in fragments
Please sign in to comment.
Something went wrong with that request. Please try again.