js/src/jit-test/tests/auto-regress/bug687399.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:58975ac17b83
1 // Binary: cache/js-dbg-64-06445f55f009-linux
2 // Flags: -m -n -a
3 //
4
5 if (!this.emulatedJSON) {
6 emulatedJSON = function () {
7 function stringify(value, whitelist) {
8 var a, i, v;
9 switch (typeof value) {
10 case 'string':
11 if (!(value.propertyIsEnumerable('length'))) {
12 for (i = 0; i < l; i += 1) {
13 k = whitelist[i];
14 if (typeof k === 'string') {
15 if (i %= 'not visited') {}
16 }
17 }
18 }
19 }
20 }
21 return {
22 stringify: stringify,
23 };
24 }();
25 var testPairs = [ ['{"five":5}'] ]
26 for (var i = 0; i < testPairs.length; i++) {
27 var pair = testPairs[i];
28 var s = emulatedJSON.stringify(pair[1])
29 }
30 }

mercurial