mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Revert "Closes #1001. Throw cannot be directly used as an expression with parens, but can appear as a statement in an expression."
This reverts commit 96b22a16eb
.
This commit is contained in:
parent
b9c17cab3c
commit
2fb6d0beb9
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
|||
};
|
||||
|
||||
Base.prototype.compileClosure = function(o) {
|
||||
if (this.jumps() || this instanceof Throw) {
|
||||
if (this.jumps()) {
|
||||
throw SyntaxError('cannot use a pure statement in an expression.');
|
||||
}
|
||||
o.sharedScope = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue