1
0
Fork 0
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:
Jeremy Ashkenas 2011-11-24 09:33:45 -05:00
parent b9c17cab3c
commit 2fb6d0beb9
2 changed files with 2 additions and 2 deletions

View file

@ -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;