Skip to content

Instantly share code, notes, and snippets.

@ysakasin
Created October 29, 2019 11:16
Show Gist options
  • Save ysakasin/e8e32b70e847f92a63e7503c16887350 to your computer and use it in GitHub Desktop.
Save ysakasin/e8e32b70e847f92a63e7503c16887350 to your computer and use it in GitHub Desktop.
$ bundle exec rake
/Users/ysakasin/.rbenv/versions/2.6.1/bin/ruby -I/Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.9.0/lib:/Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-support-3.9.0/lib /Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.9.0/exe/rspec --pattern spec/lib/\*\*/\*_spec.rb
/Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer.rb:10922: warning: assigned but unused variable - testEof
/Users/ysakasin/src/opal/spec/support/source_map_helper.rb:61: warning: assigned but unused variable - next_section
Randomized with seed 11358
.......................................................................................................................................................................................................................warning: Removed semicolon ending x-string expression, interpreted as unintentional -- (file):3
warning: Removed semicolon ending x-string expression, interpreted as unintentional -- (file):4
warning: Removed semicolon ending x-string expression, interpreted as unintentional -- (file):4
warning: Removed semicolon ending x-string expression, interpreted as unintentional -- (file):4
warning: Removed semicolon ending x-string expression, interpreted as unintentional -- (file):4
................................................warning: Skipping the 'n' Regexp flag as it's not widely supported by JavaScript vendors. -- (file):
.foobar.js.rb:1:8: error: unexpected token $end
foobar.js.rb:1: def foo
foobar.js.rb:1:
........../private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17p7mhj:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
./private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17wqe7k:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F.../private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jldqu6:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F...../private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-jjz2l:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1oaftt6:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F..../private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-1mxptsc:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
./private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-19vctua:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F./private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:5501
return Opal.const_set($nesting[0], 'RUBY_DESCRIPTION', "" + "opal " + ($$($nesting, 'RUBY_ENGINE_VERSION').$to_s()) + " (" + ($$($nesting, 'RUBY_RELEASE_DATE').$to_s()) + " revision " + ($$($nesting, 'RUBY_REVISION').$to_s()) + ")");
^
TypeError: $$(...).$to_s is not a function
at Opal.modules.corelib/constants (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:5501:110)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:2339:17)
at Opal.modules.opal/base (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:5517:15)
at Object.Opal.load (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:2311:7)
at constructor.Opal.require (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:2339:17)
at /private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:23488:8
at Object.<anonymous> (/private/var/folders/1r/sfh4pqx17kld3hkmjmj6tv8r0000gn/T/opal-system-runner-20191029-7833-17rvdz2:23505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
F......................................................................................................................
Failures:
1) Opal::CLI :load_paths options requires files
Failure/Error: expect_output_of{ subject.run }.to eq("hi from opal!\n")
expected: "hi from opal!\n"
got: ""
(compared using ==)
Diff:
@@ -1,2 +1 @@
-hi from opal!
# ./spec/lib/cli_spec.rb:194:in `block (3 levels) in <top (required)>'
2) Opal::CLI with a file runs the file
Failure/Error: expect_output_of{ subject.run }.to eq("hi from opal!\n")
expected: "hi from opal!\n"
got: ""
(compared using ==)
Diff:
@@ -1,2 +1 @@
-hi from opal!
# ./spec/lib/cli_spec.rb:15:in `block (3 levels) in <top (required)>'
3) Opal::CLI :requires options with an absolute path requires the file
Failure/Error: expect_output_of{ subject.run }.to eq("hi from opal!\n")
expected: "hi from opal!\n"
got: ""
(compared using ==)
Diff:
@@ -1,2 +1 @@
-hi from opal!
# ./spec/lib/cli_spec.rb:110:in `block (4 levels) in <top (required)>'
4) Opal::CLI :requires options with a path relative to a load path requires the file
Failure/Error: expect_output_of{ subject.run }.to eq("hi from opal!\n")
expected: "hi from opal!\n"
got: ""
(compared using ==)
Diff:
@@ -1,2 +1 @@
-hi from opal!
# ./spec/lib/cli_spec.rb:119:in `block (4 levels) in <top (required)>'
5) Opal::CLI :evals option with one eval executes the code
Failure/Error: expect_output_of{ subject.run }.to eq("hello\n")
expected: "hello\n"
got: ""
(compared using ==)
Diff:
@@ -1,2 +1 @@
-hello
# ./spec/lib/cli_spec.rb:46:in `block (4 levels) in <top (required)>'
6) Opal::CLI :evals option with many evals executes the code
Failure/Error: expect_output_of{ subject.run }.to eq("hello\nciao\n")
expected: "hello\nciao\n"
got: ""
(compared using ==)
Diff:
@@ -1,3 +1 @@
-hello
-ciao
# ./spec/lib/cli_spec.rb:62:in `block (4 levels) in <top (required)>'
Top 10 slowest examples (50.5 seconds, 66.9% of total time):
Opal::CLI :load_paths options requires files
8.79 seconds ./spec/lib/cli_spec.rb:193
Opal::CLI :stubs options with a stubbed file adds the gem's lib paths to Opal.path
6.51 seconds ./spec/lib/cli_spec.rb:150
Opal::CLI :runner option when :compile with the :map_file runner option writes the map file to the specified path
5.81 seconds ./spec/lib/cli_spec.rb:178
Opal::CLI :runner option when :compile outputs the compiled javascript
5.73 seconds ./spec/lib/cli_spec.rb:168
Opal::CLI :parse_comments option sets $$comment prop for compiled methods
4.22 seconds ./spec/lib/cli_spec.rb:216
Opal::CLI :no_exit option when true appends a Kernel#exit at the end of the source
4.2 seconds ./spec/lib/cli_spec.rb:77
Opal::CLI with a file runs the file
4.19 seconds ./spec/lib/cli_spec.rb:14
Opal::CLI :lib_only option when true appends code block at the end of the source
3.74 seconds ./spec/lib/cli_spec.rb:93
Opal::CLI :requires options with a path relative to a load path requires the file
3.68 seconds ./spec/lib/cli_spec.rb:118
Opal::CLI :enable_source_location sets $$source_location prop for compiled methods
3.64 seconds ./spec/lib/cli_spec.rb:225
Top 10 slowest example groups:
Opal::CLI
3.06 seconds average (70.47 seconds / 23 examples) ./spec/lib/cli_spec.rb:6
Opal::SimpleServer
0.30813 seconds average (1.85 seconds / 6 examples) ./spec/lib/simple_server_spec.rb:4
Opal::CliRunners::Server
0.25104 seconds average (0.25104 seconds / 1 example) ./spec/lib/cli_runners/server_spec.rb:5
Opal::Builder
0.16305 seconds average (2.45 seconds / 15 examples) ./spec/lib/builder_spec.rb:4
Opal::SourceMap::Index
0.01577 seconds average (0.03154 seconds / 2 examples) ./spec/lib/source_map/index_spec.rb:3
Opal.use_gem
0.01156 seconds average (0.01156 seconds / 1 example) ./spec/lib/paths_spec.rb:3
Opal::Rubyspec::FiltersRewriter
0.00753 seconds average (0.01506 seconds / 2 examples) ./spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb:5
Opal::Config
0.00421 seconds average (0.01686 seconds / 4 examples) ./spec/lib/config_spec.rb:4
Opal::Rewriters::BlockToIter
0.0036 seconds average (0.0036 seconds / 1 example) ./spec/lib/rewriters/block_to_iter_spec.rb:3
Opal::SourceMap::File
0.00342 seconds average (0.00684 seconds / 2 examples) ./spec/lib/source_map/file_spec.rb:3
Finished in 1 minute 15.52 seconds (files took 1.03 seconds to load)
413 examples, 6 failures
Failed examples:
rspec ./spec/lib/cli_spec.rb:193 # Opal::CLI :load_paths options requires files
rspec ./spec/lib/cli_spec.rb:14 # Opal::CLI with a file runs the file
rspec ./spec/lib/cli_spec.rb:109 # Opal::CLI :requires options with an absolute path requires the file
rspec ./spec/lib/cli_spec.rb:118 # Opal::CLI :requires options with a path relative to a load path requires the file
rspec ./spec/lib/cli_spec.rb:45 # Opal::CLI :evals option with one eval executes the code
rspec ./spec/lib/cli_spec.rb:61 # Opal::CLI :evals option with many evals executes the code
Randomized with seed 11358
/Users/ysakasin/.rbenv/versions/2.6.1/bin/ruby -I/Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.9.0/lib:/Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-support-3.9.0/lib /Users/ysakasin/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/rspec-core-3.9.0/exe/rspec --pattern spec/lib/\*\*/\*_spec.rb failed
diff --git a/lib/opal/nodes/literal.rb b/lib/opal/nodes/literal.rb
index a25b0450..d4e712cd 100644
--- a/lib/opal/nodes/literal.rb
+++ b/lib/opal/nodes/literal.rb
@@ -221,7 +221,8 @@ module Opal
if part.type == :str
push part.children[0].inspect
else
- push '(', expr(part), ')'
+ send_node = s(:send, part, :to_s)
+ push '(', expr(send_node) , ')'
end
wrap '(', ')' if recv?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment