summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug536445.js
blob: 16808bb30559d8eb44494195144bd17bd1700a65 (plain)
1
2
3
4
5
6
7
8
9
10
var x;
var str = "a";
assertEq(str.charCodeAt(Infinity) | 0, 0);
for (var i = 0; i < 10; ++i)
  x = str.charCodeAt(Infinity) | 0;
assertEq(x, 0);
for (var i = 0; i < 10; ++i)
  x = str.charCodeAt(Infinity);
assertEq(x | 0, 0);