1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_5/Regress/regress-449666.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,67 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* 1.6 + * Any copyright is dedicated to the Public Domain. 1.7 + * http://creativecommons.org/licenses/publicdomain/ 1.8 + * Contributor: Robert Sayre 1.9 + */ 1.10 + 1.11 +//----------------------------------------------------------------------------- 1.12 +var BUGNUMBER = 449666; 1.13 +var summary = 'Do not assert: JSSTRING_IS_FLAT(str_)'; 1.14 +var actual = ''; 1.15 +var expect = ''; 1.16 + 1.17 + 1.18 +//----------------------------------------------------------------------------- 1.19 +test(); 1.20 +//----------------------------------------------------------------------------- 1.21 + 1.22 +function test() 1.23 +{ 1.24 + enterFunc ('test'); 1.25 + printBugNumber(BUGNUMBER); 1.26 + printStatus (summary); 1.27 + 1.28 + var global; 1.29 + 1.30 + jit(true); 1.31 + 1.32 + if (typeof window == 'undefined') { 1.33 + global = this; 1.34 + } 1.35 + else { 1.36 + global = window; 1.37 + } 1.38 + 1.39 + if (!global['g']) { 1.40 + global['g'] = {}; 1.41 + } 1.42 + 1.43 + if (!global['g']['l']) { 1.44 + global['g']['l'] = {}; 1.45 + (function() { 1.46 + function k(a,b){ 1.47 + var c=a.split(/\./); 1.48 + var d=global; 1.49 + for(var e=0;e<c.length-1;e++){ 1.50 + if(!d[c[e]]){ 1.51 + d[c[e]]={}; 1.52 + } 1.53 + d=d[c[e]]; 1.54 + } 1.55 + d[c[c.length-1]]=b; 1.56 + print("hi"); 1.57 + } 1.58 + 1.59 + function T(a){return "hmm"} 1.60 + k("g.l.loaded",T); 1.61 + })(); 1.62 + 1.63 + } 1.64 + 1.65 + jit(false); 1.66 + 1.67 + reportCompare(expect, actual, summary); 1.68 + 1.69 + exitFunc ('test'); 1.70 +}