1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8/extensions/regress-476427.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +// |reftest| skip-if(Android) -- bug - nsIDOMWindow.crypto throws NS_ERROR_NOT_IMPLEMENTED on Android 1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +//----------------------------------------------------------------------------- 1.11 +var BUGNUMBER = 476427; 1.12 +var summary = 'Do not assert: v != JSVAL_ERROR_COOKIE'; 1.13 +var actual = ''; 1.14 +var expect = ''; 1.15 + 1.16 +printBugNumber(BUGNUMBER); 1.17 +printStatus (summary); 1.18 + 1.19 +function a1(){} 1.20 +a2 = a1; 1.21 +a3 = a1; 1.22 +a4 = a1; 1.23 +c1 = toString; 1.24 +c2 = toSource; 1.25 +function foo(code) 1.26 +{ 1.27 + (new Function(code))(); 1.28 + delete toSource; 1.29 + delete toString; 1.30 + toSource = c2; 1.31 + toString = c1; 1.32 +} 1.33 +let z; 1.34 +for (z = 1; z <= 16322; ++z) { 1.35 + this.__defineGetter__('functional', function x(){ yield; } ); 1.36 + foo("this.__defineSetter__('', function(){});"); 1.37 + foo("for each (y in this);"); 1.38 +} 1.39 + 1.40 +reportCompare(expect, actual, summary);