You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting to use yield same as functions and statements like return or throw. This type of syntax is quite handy when returning multi key objects.
Environment
CoffeeScript version: 2.3.0
Node.js version: 8.4.0
The text was updated successfully, but these errors were encountered:
GeoffreyBooth
changed the title
Unexpected compile error unexpected indentation when yielding
Lexer: “unexpected indentation” with yield followed by implicit object
May 22, 2018
Well that was fast. Does it make any sense to do the same for await? Not sure when you’d be awaiting an object, but it feels like the syntax should be the same for yield, await, throw, return etc.
Possible bug or unintended behavior:
/#try link
Expected Behavior
Compile same as:
Current Behavior
Gives compile error:
Context
I was expecting to use
yield
same as functions and statements likereturn
orthrow
. This type of syntax is quite handy when returning multi key objects.Environment
The text was updated successfully, but these errors were encountered: