Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c7e7ec

Browse files
committed
Update Changelog and is_module_loaded?
1 parent 55eaf15 commit 1c7e7ec

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Changed
99
- [Changed CHANGELOG.md to adhere the format from Keep a Changelog](https://github.com/bryanjos/elixirscript/pull/205)
1010
- [`with` now supports `else`](https://github.com/bryanjos/elixirscript/pull/207)
11+
- [Implement `context` option on `quote`](https://github.com/bryanjos/elixirscript/pull/208)
1112
- New compiler pipeline
1213
- In mix projects, will now crawl deps to find packages that have an `elixir_script` config key with the `input` key set to a path to look in. Basically, if a compiler has elixirscript code in it and the above is in the mix config, then it will be used during compilation
1314

lib/elixir_script/translator/state.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ defmodule ElixirScript.Translator.State do
8888
end
8989

9090
def is_module_loaded?(module) when is_atom(module) do
91+
module = get_module_name(module)
9192
Agent.get(__MODULE__, fn(state) ->
9293
Code.ensure_loaded?(module) or (module in state.loaded_modules)
9394
end)

0 commit comments

Comments
 (0)