File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## [ 0.23.1] - 2016-11-16
8
+
9
+ ### Fixed
10
+ - Incorrectly sending standard lib when using compile or compile_path by default
11
+
7
12
## [ 0.23.0] - 2016-11-15
8
13
9
14
### Added
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ defmodule ElixirScript do
61
61
@ spec compile_quoted ( Macro . t , Map . t ) :: [ binary | { binary , binary } | :ok ]
62
62
def compile_quoted ( quoted , opts \\ % { } ) do
63
63
64
- opts = build_compiler_options ( opts )
64
+ opts = build_compiler_options ( Map . merge ( opts , % { import_standard_libs: false } ) )
65
65
66
66
data = quoted
67
67
|> get_modules_from_quoted
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScript.Mixfile do
4
4
def project do
5
5
[
6
6
app: :elixir_script ,
7
- version: "0.23.0 " ,
7
+ version: "0.23.1 " ,
8
8
elixir: "~> 1.0" ,
9
9
escript: escript_config ,
10
10
deps: deps ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScript.Test do
4
4
5
5
test "turn javascript ast into javascript code strings" do
6
6
js_code = ElixirScript . compile ( ":atom" )
7
- assert Enum . join ( js_code , "\n " ) =~ "Symbol.for('atom')"
7
+ assert Enum . join ( js_code , "\n " ) |> String . trim == "Symbol.for('atom')"
8
8
end
9
9
10
10
@@ -22,8 +22,7 @@ defmodule ElixirScript.Test do
22
22
""" , % { env: make_custom_env } )
23
23
24
24
assert_js_matches """
25
- import Elixir from '../elixir/Elixir.Bootstrap';
26
- import Elixir$ElixirScript$Kernel from '../elixir/Elixir.ElixirScript.Kernel';
25
+ import Elixir$ElixirScript$Kernel from '../elixir/Elixir.ElixirScript.Kernel';
27
26
const something_else = Elixir.Core.Patterns.defmatch(Elixir.Core.Patterns.clause([],function() {
28
27
return 1 * 1;
29
28
}));
@@ -51,7 +50,6 @@ defmodule ElixirScript.Test do
51
50
""" , % { env: make_custom_env , core_path: "elixirscript" } )
52
51
53
52
assert_js_matches """
54
- import Elixir from '../elixir/elixirscript';
55
53
import Elixir$ElixirScript$Kernel from '../elixir/Elixir.ElixirScript.Kernel';
56
54
const something_else = Elixir.Core.Patterns.defmatch(Elixir.Core.Patterns.clause([],function() {
57
55
return 1 * 1;
You can’t perform that action at this time.
0 commit comments