| 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 = '11.13.1-002.js'; |
| 7 | //----------------------------------------------------------------------------- |
| 8 | var BUGNUMBER = 312354; |
| 9 | var summary = '11.13.1 Simple Assignment should return type of RHS'; |
| 10 | var actual = ''; |
| 11 | var expect = ''; |
| 12 | |
| 13 | // XXX this test should really test each property of the native |
| 14 | // objects, but I'm too lazy. Patches accepted. |
| 15 | |
| 16 | printBugNumber(BUGNUMBER); |
| 17 | printStatus (summary); |
| 18 | |
| 19 | var re = /x/g; |
| 20 | var y = re.lastIndex = "7"; |
| 21 | |
| 22 | expect = "string"; |
| 23 | actual = typeof y; |
| 24 | |
| 25 | reportCompare(expect, actual, summary); |