mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Merge branch 'master' of github.com:jashkenas/coffeescript into 2
# Conflicts: # lib/coffee-script/nodes.js # lib/coffee-script/scope.js
This commit is contained in:
@@ -733,3 +733,19 @@ test "export an imported aliased member named default", ->
|
||||
default as def
|
||||
} from 'lib';"""
|
||||
eq toJS(input), output
|
||||
|
||||
test "#4394: export shouldn't prevent variable declarations", ->
|
||||
input = """
|
||||
x = 1
|
||||
export { x }
|
||||
"""
|
||||
output = """
|
||||
var x;
|
||||
|
||||
x = 1;
|
||||
|
||||
export {
|
||||
x
|
||||
};
|
||||
"""
|
||||
eq toJS(input), output
|
||||
|
||||
Reference in New Issue
Block a user