Skip to content

Commit

Permalink
Fix keys on export objects
Browse files Browse the repository at this point in the history
  • Loading branch information
xixixao committed Mar 19, 2016
1 parent 2f5ee00 commit fc79ad5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/compiler.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,8 @@ topLevelModule = (ctx, form) ->
# deprecated submodules:
# concatSets exported, (filterMap isExported, ctx.submodules)
# isExported = (name, exported) -> exported
exportList = map validIdentifier, (setToArray exported)
exportDictionary = (jsDictionary exportList, exportList)
exportList = (setToArray exported)
exportDictionary = (jsDictionary exportList, (map validIdentifier, exportList))
{definitions, exportDictionary}

topLevelModuleWrapper = (typedModulePath, compiledDefinitions, exportDictionary) ->
Expand Down
4 changes: 2 additions & 2 deletions test/module/files/siblings/A.shem
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[g] (req ../B)
[g-g] (req ../B)

f (fn+ [x]
(g x))
(g-g x))
2 changes: 1 addition & 1 deletion test/module/files/siblings/B.shem
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
g (fn+ [x]
g-g (fn+ [x]
x)

0 comments on commit fc79ad5

Please sign in to comment.