summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1122534.js
blob: bdf1a0b57a8c264a09901841a358bc85a45a3a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: TypeError

function newFunc(x) { new Function(x)(); };
newFunc("\
function GetUnicodeValues(c) {\
    u = new Array();\
    if ((c >= 0x0100 && c < 0x0138) || (c > 0x1Bedb  && c < 0x0178))\
        return;\
    return u;\
}\
function Unicode(c) {\
    u = GetUnicodeValues(c);\
    this.upper = u[0];\
}\
for (var i = 0; i <= 0x017f; i++) { var U = new Unicode(i); }\
");