Skip to content

Commit

Permalink
Upgrade to libv8 8.4, fix slightly flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
nightpool committed Jul 15, 2020
1 parent 21cda0e commit 1263283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mini_racer.gemspec
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "minitest", "~> 5.0"
spec.add_development_dependency "rake-compiler"

spec.add_dependency 'libv8', '> 7.3'
spec.add_dependency 'libv8', '> 8.4'
spec.require_paths = ["lib", "ext"]

spec.extensions = ["ext/mini_racer_extension/extconf.rb"]
Expand Down
4 changes: 2 additions & 2 deletions test/mini_racer_test.rb
Expand Up @@ -319,7 +319,7 @@ def test_max_memory_for_call
s = val;
}
JS
context.call('set_s', 1000)
context.call('set_s', 2000)
assert_raises(MiniRacer::V8OutOfMemoryError) { context.call('memory_test') }
s = context.eval('s')
assert_operator(s, :>, 100_000)
Expand Down Expand Up @@ -448,7 +448,7 @@ def test_invalid_warmup_sources_throw_an_exception
end
end

def test_invalid_warmup_sources_throw_an_exception
def test_invalid_warmup_sources_throw_an_exception_2
assert_raises(ArgumentError) do
MiniRacer::Snapshot.new('function f() { return 1 }').warmup!([])
end
Expand Down

0 comments on commit 1263283

Please sign in to comment.