diff --git a/CHANGELOG.md b/CHANGELOG.md index 09a53dc9..9d404699 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Reimplement `String.split_at/2` to make sure Unicode library isn't compiled +### Fixed +- Make sure not to add underscores to erlang functions + ## [0.30.0] - 2017-08-15 ### Added diff --git a/lib/elixir_script/passes/translate/forms/remote.ex b/lib/elixir_script/passes/translate/forms/remote.ex index a2c5a07b..8052e041 100644 --- a/lib/elixir_script/passes/translate/forms/remote.ex +++ b/lib/elixir_script/passes/translate/forms/remote.ex @@ -57,7 +57,7 @@ defmodule ElixirScript.Translate.Forms.Remote do def compile({:., _, [module, function]}, state) when module in @erlang_modules do ast = J.member_expression( Helpers.core_module(module), - ElixirScript.Translate.Identifier.make_function_name(function) + J.identifier(function) ) { ast, state } diff --git a/test/support/main.ex b/test/support/main.ex index a2260e63..a18d3d90 100644 --- a/test/support/main.ex +++ b/test/support/main.ex @@ -1,7 +1,5 @@ defmodule Main do def start(:normal, [callback]) do callback.("started") - - Enum.map(1..5, fn(x) -> x * 2 end) end end