Skip to content

Commit 9de097b

Browse files
committed
Update mini_racer to support logical nullish #883
1 parent b301fbd commit 9de097b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ GEM
214214
activerecord (>= 6.1.0)
215215
json (2.5.1)
216216
jwt (2.2.2)
217-
libv8 (8.4.255.0)
217+
libv8-node (15.14.0.0)
218218
listen (3.5.1)
219219
rb-fsevent (~> 0.10, >= 0.10.3)
220220
rb-inotify (~> 0.9, >= 0.9.10)
@@ -230,8 +230,8 @@ GEM
230230
mini_magick (4.11.0)
231231
mini_mime (1.0.3)
232232
mini_portile2 (2.5.0)
233-
mini_racer (0.3.1)
234-
libv8 (~> 8.4.255)
233+
mini_racer (0.4.0)
234+
libv8-node (~> 15.14.0.0)
235235
minitest (5.14.4)
236236
minitest-around (0.5.0)
237237
minitest (~> 5.0)

test/lib/js_checker_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ class JsCheckerTest < ActiveSupport::TestCase
2525
assert_not jsc.check
2626
assert_not_empty jsc.errors
2727
end
28+
29+
test 'logical nullish' do
30+
jsc = ::JsChecker.new('let x = null; x ??= 1;')
31+
assert jsc.check
32+
assert_empty jsc.errors
33+
end
2834
end

0 commit comments

Comments
 (0)