Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Fix regression when requiring foreign libs
Browse files Browse the repository at this point in the history
fixes #167
  • Loading branch information
anmonteiro committed May 20, 2017
1 parent c8d5768 commit ebf155c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fix regression that prevented requiring binary modules ([#163](/~https://github.com/anmonteiro/lumo/issues/163)).
- Fix bug that prevented Lumo from continuing executing after being put in background ([#166](/~https://github.com/anmonteiro/lumo/issues/166)).
- Fix regression that prevented requiring foreign libraries ([#167](/~https://github.com/anmonteiro/lumo/issues/167)).

## [1.5.0](/~https://github.com/anmonteiro/lumo/compare/1.4.1...1.5.0) (2017-05-13)

Expand Down
3 changes: 2 additions & 1 deletion src/cljs/snapshot/lumo/repl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
(defn- load-foreign-lib
[name cb]
(let [files (deps/files-to-load name)
sources (map js/$$LUMO_GLOBALS.readSource files)]
sources (map (fn [file]
(.-source (js/$$LUMO_GLOBALS.readSource file))) files)]
(binding [*loading-foreign* true]
(cb {:lang :js
:source (string/join "\n" sources)})
Expand Down

0 comments on commit ebf155c

Please sign in to comment.