Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

loop + await + debugger causes a compiler error #123

Closed
monsanto opened this Issue · 3 comments

2 participants

@monsanto

Try running iced on the following:

loop
  await x defer y
  debugger

You should get

Error: whoops!
  at new Literal (iced-coffee-script/lib/coffee-script/nodes.js:809:15)
  at Literal.exports.Literal.Literal.icedCompileIced (iced-coffee-script/lib/coffee-script/nodes.js:879:24)
  at Literal.exports.Literal.Literal.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:849:21)
  at Literal.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Return.exports.Return.Return.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:968:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Block.exports.Block.Block.compileWithDeclarations (iced-coffee-script/lib/coffee-script/nodes.js:660:19)
  at Code.exports.Code.Code.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2358:63)
  at Code.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Call.exports.Call.Call.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:1357:51)
  at Call.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Await.exports.Base.Base.icedCompileCps (iced-coffee-script/lib/coffee-script/nodes.js:295:19)
  at Await.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:99:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Block.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Block.exports.Block.Block.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:547:51)
  at If.exports.If.If.compileStatement (iced-coffee-script/lib/coffee-script/nodes.js:4097:68)
  at If.exports.If.If.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:4048:21)
  at If.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Block.exports.Block.Block.compileWithDeclarations (iced-coffee-script/lib/coffee-script/nodes.js:660:19)
  at Code.exports.Code.Code.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2358:63)
  at Code.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Return.exports.Return.Return.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:982:48)
  at Return.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Return.exports.Return.Return.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:970:52)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Block.exports.Block.Block.compileWithDeclarations (iced-coffee-script/lib/coffee-script/nodes.js:660:19)
  at Code.exports.Code.Code.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2358:63)
  at Code.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Call.exports.Call.Call.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:1370:55)
  at Code.exports.Code.Code.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2246:26)
  at Code.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Assign.exports.Assign.Assign.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2027:24)
  at Assign.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at While.exports.While.While.icedCompileIced (iced-coffee-script/lib/coffee-script/nodes.js:2837:16)
  at While.exports.While.While.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:2707:21)
  at While.exports.Base.Base.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:101:21)
  at Block.exports.Block.Block.compileNode (iced-coffee-script/lib/coffee-script/nodes.js:567:28)
  at Block.exports.Block.Block.compileWithDeclarations (iced-coffee-script/lib/coffee-script/nodes.js:660:19)
  at Block.exports.Block.Block.compileRoot (iced-coffee-script/lib/coffee-script/nodes.js:632:24)
  at Block.exports.Block.Block.compileToFragments (iced-coffee-script/lib/coffee-script/nodes.js:549:21)
  at iced-coffee-script/lib/coffee-script/coffee-script.js:53:88
  at iced-coffee-script/lib/coffee-script/coffee-script.js:38:19
@maxtaco
Owner

Whops! Forgot about the debugger keyword. I'll take a look. Thanks for the report.

@maxtaco maxtaco closed this issue from a commit
@maxtaco close #123
ready version push
1a07b47
@maxtaco maxtaco closed this in 1a07b47
@maxtaco
Owner

Going live in v1.7.1-f in a few minutes...

@maxtaco
Owner

Ok, live, feel free to reopen if you see anything fishy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.