From 711e72c292327674c4a0593fdbb83d6347738ec9 Mon Sep 17 00:00:00 2001 From: dirkf Date: Thu, 6 Feb 2025 21:09:00 +0000 Subject: [JSInterp] Fix bit-shift coercion for player 9c6dfc4a --- test/test_jsinterp.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_jsinterp.py') diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 12e7b9b94..6c34bc896 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -459,6 +459,10 @@ class TestJSInterpreter(unittest.TestCase): self._test('function f(){return undefined >> 5}', 0) self._test('function f(){return 42 << NaN}', 42) self._test('function f(){return 42 << Infinity}', 42) + self._test('function f(){return 0.0 << null}', 0) + self._test('function f(){return NaN << 42}', 0) + self._test('function f(){return "21.9" << 1}', 42) + self._test('function f(){return 21 << 4294967297}', 42) def test_negative(self): self._test('function f(){return 2 * -2.0 ;}', -4) -- cgit v1.2.3