Index: test/mjsunit/const.js |
diff --git a/test/mjsunit/const.js b/test/mjsunit/const.js |
index a48e82ded622cb4e5104cdfcbe9199ed51cb3e58..adb0b7ae3be4fb80a78fd0221bf0deffa42cf7db 100644 |
--- a/test/mjsunit/const.js |
+++ b/test/mjsunit/const.js |
@@ -50,20 +50,20 @@ f(); |
var valueOfCount = 0; |
function g() { |
- const o = { valueOf: function() { valueOfCount++; return 42; } } |
- assertEquals(42, o); |
+ const o = { valueOf: function() { valueOfCount++; return 42; } }; |
+ assertEquals(42, +o); |
assertEquals(1, valueOfCount); |
o++; |
- assertEquals(42, o); |
+ assertEquals(42, +o); |
assertEquals(3, valueOfCount); |
++o; |
- assertEquals(42, o); |
+ assertEquals(42, +o); |
assertEquals(5, valueOfCount); |
o--; |
- assertEquals(42, o); |
+ assertEquals(42, +o); |
assertEquals(7, valueOfCount); |
--o; |
- assertEquals(42, o); |
+ assertEquals(42, +o); |
assertEquals(9, valueOfCount); |
} |