mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
3 changed files with 20 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'preserves var declarations in if blocks (#1113)' |
||||
|
}; |
@ -0,0 +1,7 @@ |
|||||
|
if ( Math.random() <= 1 ) { |
||||
|
var x = 1; |
||||
|
} else { |
||||
|
var x = 2; |
||||
|
} |
||||
|
|
||||
|
assert.equal( x, 1 ); |
Loading…
Reference in new issue