Skip to content

Commit 3037e43

Browse files
authored
Merge pull request #369 from elixirscript/fix/359
Make sure not to add underscores to erlang functions.
2 parents dc5d645 + 5cc9507 commit 3037e43

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Added
99
- Reimplement `String.split_at/2` to make sure Unicode library isn't compiled
1010

11+
### Fixed
12+
- Make sure not to add underscores to erlang functions
13+
1114
## [0.30.0] - 2017-08-15
1215

1316
### Added

lib/elixir_script/passes/translate/forms/remote.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule ElixirScript.Translate.Forms.Remote do
5757
def compile({:., _, [module, function]}, state) when module in @erlang_modules do
5858
ast = J.member_expression(
5959
Helpers.core_module(module),
60-
ElixirScript.Translate.Identifier.make_function_name(function)
60+
J.identifier(function)
6161
)
6262

6363
{ ast, state }

test/support/main.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
defmodule Main do
22
def start(:normal, [callback]) do
33
callback.("started")
4-
5-
Enum.map(1..5, fn(x) -> x * 2 end)
64
end
75
end

0 commit comments

Comments
 (0)