Skip to content

Commit eb76a3c

Browse files
committed
Merge branch 'master' into track_modules_used
2 parents 9c2886f + a73ed2c commit eb76a3c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [0.31.1] - 2017-09-27
8+
### Fixed
9+
- Compiler error when `receive` is used as variable name
10+
11+
712
## [0.31.0] - 2017-09-24
813
### Added
914
- [Compiler will now accept a path to Elixir Files to compile](https://github.com/elixirscript/elixirscript/issues/420)

lib/elixir_script/passes/find_used_modules.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ defmodule ElixirScript.FindUsedModules do
213213
end)
214214
end
215215

216-
defp walk({:receive, _context, blocks}, state) do
216+
defp walk({:receive, _context, blocks}, state) when is_list(blocks) do
217217
do_block = Keyword.get(blocks, :do)
218218
after_block = Keyword.get(blocks, :after, nil)
219219

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule ElixirScript.Mixfile do
44
def project do
55
[
66
app: :elixir_script,
7-
version: "0.31.0",
7+
version: "0.31.1",
88
elixir: "~> 1.5",
99
elixirc_paths: elixirc_paths(Mix.env),
1010
deps: deps(),

test/cli_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule ElixirScript.CLI.Test do
1010
test "process help" do
1111
assert capture_io(fn ->
1212
ElixirScript.CLI.process(:help)
13-
end) =~ "usage: elixirscript <module> [options]"
13+
end) =~ "usage: elixirscript <module | path> [options]"
1414
end
1515

1616
test "process version" do
@@ -22,7 +22,7 @@ defmodule ElixirScript.CLI.Test do
2222
test "process unknown" do
2323
assert capture_io(fn ->
2424
ElixirScript.CLI.process({"", [unknown: ""]})
25-
end) =~ "usage: elixirscript <module> [options]"
25+
end) =~ "usage: elixirscript <module | path> [options]"
2626
end
2727

2828
test "process input" do

0 commit comments

Comments
 (0)