1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_3/Operators/11.13.1-002.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +//----------------------------------------------------------------------------- 1.10 +var BUGNUMBER = 312354; 1.11 +var summary = '11.13.1 Simple Assignment should return type of RHS'; 1.12 +var actual = ''; 1.13 +var expect = ''; 1.14 + 1.15 +// XXX this test should really test each property of the native 1.16 +// objects, but I'm too lazy. Patches accepted. 1.17 + 1.18 +printBugNumber(BUGNUMBER); 1.19 +printStatus (summary); 1.20 + 1.21 +var re = /x/g; 1.22 +var y = re.lastIndex = "7"; 1.23 + 1.24 +expect = "string"; 1.25 +actual = typeof y; 1.26 + 1.27 +reportCompare(expect, actual, summary);