| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-449666.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 449666; |
| 9 |
var summary = 'Do not assert: JSSTRING_IS_FLAT(str_)'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
test(); |
| 16 |
|
| 17 |
|
| 18 |
function test() |
| 19 |
{ |
| 20 |
enterFunc ('test'); |
| 21 |
printBugNumber(BUGNUMBER); |
| 22 |
printStatus (summary); |
| 23 |
|
| 24 |
var global; |
| 25 |
|
| 26 |
jit(true); |
| 27 |
|
| 28 |
if (typeof window == 'undefined') { |
| 29 |
global = this; |
| 30 |
} |
| 31 |
else { |
| 32 |
global = window; |
| 33 |
} |
| 34 |
|
| 35 |
if (!global['g']) { |
| 36 |
global['g'] = {}; |
| 37 |
} |
| 38 |
|
| 39 |
if (!global['g']['l']) { |
| 40 |
global['g']['l'] = {}; |
| 41 |
(function() { |
| 42 |
function k(a,b){ |
| 43 |
var c=a.split(/\./); |
| 44 |
var d=global; |
| 45 |
for(var e=0;e<c.length-1;e++){ |
| 46 |
if(!d[c[e]]){ |
| 47 |
d[c[e]]={}; |
| 48 |
} |
| 49 |
d=d[c[e]]; |
| 50 |
} |
| 51 |
d[c[c.length-1]]=b; |
| 52 |
print("hi"); |
| 53 |
} |
| 54 |
|
| 55 |
function T(a){return "hmm"} |
| 56 |
k("g.l.loaded",T); |
| 57 |
})(); |
| 58 |
|
| 59 |
} |
| 60 |
|
| 61 |
jit(false); |
| 62 |
|
| 63 |
reportCompare(expect, actual, summary); |
| 64 |
|
| 65 |
exitFunc ('test'); |
| 66 |
} |