mirror of https://github.com/lukechilds/rollup.git
Browse Source
include all ancestors of expression with effects, up to function boundarylegacy-quote-reserved-properties
Rich Harris
8 years ago
committed by
GitHub
6 changed files with 24 additions and 2 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'update assignments to names are preserved (#930)' |
||||
|
}; |
@ -0,0 +1,6 @@ |
|||||
|
var result = 0; |
||||
|
if ( Math.random() <= 1 ) { |
||||
|
if ( Math.random() <= 1 ) result += 1; |
||||
|
} |
||||
|
|
||||
|
assert.equal( result, 1 ); |
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'updates to names are preserved (#930)' |
||||
|
}; |
@ -0,0 +1,6 @@ |
|||||
|
var result = 0; |
||||
|
if ( Math.random() <= 1 ) { |
||||
|
if ( Math.random() <= 1 ) ++result; |
||||
|
} |
||||
|
|
||||
|
assert.equal( result, 1 ); |
Loading…
Reference in new issue