summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug687399.js
blob: 4a6734d1a99f3b98597fa1b3dd96de0c27ea75db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Binary: cache/js-dbg-64-06445f55f009-linux
// Flags: -m -n -a
//

if (!this.emulatedJSON) {
    emulatedJSON = function () {
        function stringify(value, whitelist) {
            var a, i, v;
            switch (typeof value) {
            case 'string':
                if (!(value.propertyIsEnumerable('length'))) {
                    for (i = 0; i < l; i += 1) {
                        k = whitelist[i];
                        if (typeof k === 'string') {
                            if (i %= 'not visited') {}
                        }
                    }
                }
            }
        }
        return {
            stringify: stringify,
        };
    }();
    var testPairs = [ ['{"five":5}'] ]
    for (var i = 0; i < testPairs.length; i++) {
        var pair = testPairs[i];
        var s = emulatedJSON.stringify(pair[1])
    }
}