Skip to content

Commit 9e67c1a

Browse files
committed
Update incorrect function calls found by compiler
1 parent f020aca commit 9e67c1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir_script/translator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ defmodule ElixirScript.Translator do
646646

647647
{ Identifier.make_identifier(name), env }
648648
has_function?(env.module, {name, 0}, env) ->
649-
Call.make_function_call(name, [], env)
649+
Call.make_local_function_call(name, [], env)
650650
ElixirScript.Translator.LexicalScope.find_module(env, {name, 0}) ->
651651
imported_module_name = ElixirScript.Translator.LexicalScope.find_module(env, {name, 0})
652652
Call.make_module_function_call(imported_module_name, name, params, env)

lib/elixir_script/translator/kernel/special_forms/call.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ defmodule ElixirScript.Translator.Call do
105105
JS.identifier("call_property")
106106
),
107107
[
108-
Translator.translate!(module_name),
108+
Translator.translate!(module_name, env),
109109
Translator.translate!(to_string(function_name), env)
110110
]
111111
)

0 commit comments

Comments
 (0)