Skip to content

Commit 4412f59

Browse files
committed
removed dependency on v8 in favor of bin/cs
1 parent 0cd2d78 commit 4412f59

9 files changed

+3
-127
lines changed

‎test/fixtures/execution/array_comprehension.js

-21
This file was deleted.

‎test/fixtures/execution/assign_to_try_catch.js

-9
This file was deleted.

‎test/fixtures/execution/calling_super.js

-27
This file was deleted.

‎test/fixtures/execution/fancy_if_statement.js

-6
This file was deleted.

‎test/fixtures/execution/keyword_operators.js

-10
This file was deleted.

‎test/fixtures/execution/test_everything.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
else
1717
c.text + '---'.
1818

19-
c.list: let for let in c.text.split('') if let is '-'.
19+
c.list: l for l in c.text.split('') if l is '-'.
2020

2121
c.single: c.list[1, 1][0].
2222

‎test/fixtures/execution/test_everything.js

-29
This file was deleted.

‎test/fixtures/execution/test_switch.js

-16
This file was deleted.

‎test/unit/test_execution.rb

+2-8
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@ class ExecutionTest < Test::Unit::TestCase
55
NO_WARNINGS = /\A(0 error\(s\), 0 warning\(s\)\n)+\Z/
66

77
def test_execution_of_coffeescript
8-
`bin/coffee-script test/fixtures/execution/*.cs`
9-
sources = Dir['test/fixtures/execution/*.js'].map {|f| File.expand_path(f) }
10-
starting_place = File.expand_path(Dir.pwd)
11-
Dir.chdir('/Users/jashkenas/Desktop/Beauty/Code/v8')
12-
sources.each do |source|
13-
suceeded = `./shell #{source}`.chomp.to_sym == :true
8+
Dir['test/fixtures/execution/*.cs'].each do |source|
9+
suceeded = `bin/cs #{source}`.chomp.to_sym == :true
1410
puts "failed: #{source}" unless suceeded
1511
assert suceeded
1612
end
17-
ensure
18-
Dir.chdir(starting_place)
1913
end
2014

2115
def test_lintless_coffeescript

0 commit comments

Comments
 (0)