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.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## [ 0.23.1] - 2016-11-16
8+
9+ ### Fixed
10+ - Incorrectly sending standard lib when using compile or compile_path by default
11+
712## [ 0.23.0] - 2016-11-15
813
914### Added
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ defmodule ElixirScript do
6161 @ spec compile_quoted ( Macro . t , Map . t ) :: [ binary | { binary , binary } | :ok ]
6262 def compile_quoted ( quoted , opts \\ % { } ) do
6363
64- opts = build_compiler_options ( opts )
64+ opts = build_compiler_options ( Map . merge ( opts , % { import_standard_libs: false } ) )
6565
6666 data = quoted
6767 |> get_modules_from_quoted
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScript.Mixfile do
44 def project do
55 [
66 app: :elixir_script ,
7- version: "0.23.0 " ,
7+ version: "0.23.1 " ,
88 elixir: "~> 1.0" ,
99 escript: escript_config ,
1010 deps: deps ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule ElixirScript.Test do
44
55 test "turn javascript ast into javascript code strings" do
66 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')"
88 end
99
1010
@@ -22,8 +22,7 @@ defmodule ElixirScript.Test do
2222 """ , % { env: make_custom_env } )
2323
2424 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';
2726 const something_else = Elixir.Core.Patterns.defmatch(Elixir.Core.Patterns.clause([],function() {
2827 return 1 * 1;
2928 }));
@@ -51,7 +50,6 @@ defmodule ElixirScript.Test do
5150 """ , % { env: make_custom_env , core_path: "elixirscript" } )
5251
5352 assert_js_matches """
54- import Elixir from '../elixir/elixirscript';
5553 import Elixir$ElixirScript$Kernel from '../elixir/Elixir.ElixirScript.Kernel';
5654 const something_else = Elixir.Core.Patterns.defmatch(Elixir.Core.Patterns.clause([],function() {
5755 return 1 * 1;
You can’t perform that action at this time.
0 commit comments