| 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | |
| 6 | var gTestfile = 'regress-452498-162.js'; |
| 7 | //----------------------------------------------------------------------------- |
| 8 | var BUGNUMBER = 452498; |
| 9 | var summary = 'TM: upvar2 regression tests'; |
| 10 | var actual = ''; |
| 11 | var expect = ''; |
| 12 | |
| 13 | //------- Comment #162 From Gary Kwong |
| 14 | |
| 15 | printBugNumber(BUGNUMBER); |
| 16 | printStatus (summary); |
| 17 | |
| 18 | // Assertion failure: !OBJ_GET_CLASS(cx, proto)->getObjectOps, at ../jsobj.cpp:2030 |
| 19 | |
| 20 | jit(true); |
| 21 | __defineGetter__("x3", Function); |
| 22 | undefined = x3; |
| 23 | undefined.prototype = []; |
| 24 | for (var z = 0; z < 4; ++z) { new undefined() } |
| 25 | jit(false); |
| 26 | |
| 27 | reportCompare(expect, actual, summary); |