We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9ded8 commit 6bbc5aeCopy full SHA for 6bbc5ae
src/nodes.coffee
@@ -1437,6 +1437,10 @@ exports.Op = class Op extends Base
1437
# In chains, there's no need to wrap bare obj literals in parens,
1438
# as the chained expression is wrapped.
1439
@first.front = @front unless isChain
1440
+ if @operator is 'delete' and o.scope.check(@first.unwrapAll().value)
1441
+ throw SyntaxError 'delete operand may not be argument or var'
1442
+ if @operator in ['--', '++'] and @first.unwrapAll().value in STRICT_PROSCRIBED
1443
+ throw SyntaxError 'prefix increment/decrement may not have eval or arguments operand'
1444
return @compileUnary o if @isUnary()
1445
return @compileChain o if isChain
1446
return @compileExistence o if @operator is '?'
0 commit comments