Bug 1339369 - Remove tests marked as obsolete and which were disabled by default. r=evilpie
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 14 Feb 2017 10:29:21 -0800
changeset 342916 a1db7869fd0fd506e65c0a704e55d09dba6ad057
parent 342915 9a7b08f075ac93c59484cb0613453979add5a8e2
child 342917 c0f715706c85bb40a645cadf8294f6ae6eb7cb36
push id31366
push usercbook@mozilla.com
push dateWed, 15 Feb 2017 11:25:19 +0000
treeherdermozilla-central@c0807d6938c1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpie
bugs1339369
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1339369 - Remove tests marked as obsolete and which were disabled by default. r=evilpie
js/src/tests/ecma/LexicalConventions/7.4.3-3-n.js
js/src/tests/ecma_2/Exceptions/lexical-010.js
js/src/tests/ecma_2/Exceptions/lexical-022.js
js/src/tests/ecma_2/RegExp/exec-001.js
js/src/tests/ecma_3/Statements/regress-121744.js
js/src/tests/ecma_3/Unicode/uc-001.js
js/src/tests/js1_2/Array/array_split_1.js
js/src/tests/js1_2/Array/tostring_1.js
js/src/tests/js1_2/Array/tostring_2.js
js/src/tests/js1_2/Objects/toString-001.js
js/src/tests/js1_2/String/concat.js
js/src/tests/js1_2/function/Function_object.js
js/src/tests/js1_2/function/Number.js
js/src/tests/js1_2/function/String.js
js/src/tests/js1_2/function/function-001-n.js
js/src/tests/js1_2/function/length.js
js/src/tests/js1_2/function/regexparg-2-n.js
js/src/tests/js1_2/function/tostring-1.js
js/src/tests/js1_2/function/tostring-2.js
js/src/tests/js1_2/operator/equality.js
js/src/tests/js1_2/regexp/RegExp_lastIndex.js
js/src/tests/js1_2/regexp/string_split.js
js/src/tests/js1_2/version120/boolean-001.js
js/src/tests/js1_2/version120/regress-99663.js
js/src/tests/js1_3/Script/function-001-n.js
js/src/tests/js1_3/regress/function-001-n.js
js/src/tests/js1_5/GetSet/regress-353264.js
js/src/tests/js1_5/Regress/regress-106244.js
js/src/tests/js1_5/Regress/regress-119719.js
js/src/tests/js1_5/Regress/regress-173067.js
js/src/tests/js1_5/Regress/regress-249211.js
js/src/tests/js1_5/Regress/regress-320119.js
js/src/tests/js1_5/Regress/regress-350692.js
js/src/tests/js1_5/Regress/regress-354924.js
js/src/tests/js1_5/Regress/regress-362583.js
js/src/tests/js1_5/extensions/regress-352281.js
js/src/tests/js1_5/extensions/regress-355622.js
js/src/tests/js1_5/extensions/regress-418730.js
js/src/tests/js1_5/extensions/regress-421621.js
js/src/tests/js1_5/extensions/regress-432075.js
js/src/tests/js1_5/extensions/regress-437288-01.js
js/src/tests/js1_5/extensions/regress-50447.js
js/src/tests/js1_6/Array/regress-320887.js
js/src/tests/js1_7/extensions/regress-353214-01.js
js/src/tests/js1_7/extensions/regress-353249.js
js/src/tests/js1_7/geniter/regress-347739.js
js/src/tests/js1_7/geniter/regress-349012-01.js
js/src/tests/js1_7/geniter/regress-349331.js
js/src/tests/js1_7/iterable/regress-340526-02.js
js/src/tests/js1_7/lexical/regress-346642-03.js
js/src/tests/js1_7/regress/regress-350387.js
deleted file mode 100644
--- a/js/src/tests/ecma/LexicalConventions/7.4.3-3-n.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          7.4.3-3-n.js
-   ECMA Section:       7.4.3
-
-   Description:
-   The following words are used as keywords in proposed extensions and are
-   therefore reserved to allow for the possibility of future adoption of
-   those extensions.
-
-   FutureReservedWord :: one of
-   case    debugger    export      super
-   catch   default     extends     switch
-   class   do          finally     throw
-   const   enum        import      try
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-var SECTION = "7.4.3-3-n";
-var VERSION = "ECMA_1";
-startTest();
-var TITLE   = "Future Reserved Words";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-DESCRIPTION = "var export = true";
-EXPECTED = "error";
-
-new TestCase( SECTION,  "var export = true",     "error",    eval("var export = true") );
-
-test();
deleted file mode 100644
--- a/js/src/tests/ecma_2/Exceptions/lexical-010.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          lexical-010.js
-   Corresponds To:     7.4.3-3-n.js
-   ECMA Section:       7.4.3
-
-   Description:
-   The following words are used as keywords in proposed extensions and are
-   therefore reserved to allow for the possibility of future adoption of
-   those extensions.
-
-   FutureReservedWord :: one of
-   case    debugger    export      super
-   catch   default     extends     switch
-   class   do          finally     throw
-   const   enum        import      try
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-var SECTION = "lexical-010";
-var VERSION = "ECMA_1";
-var TITLE   = "Future Reserved Words";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var result = "Failed";
-var exception = "No exception thrown";
-var expect = "Passed";
-
-try {
-  eval("export = true;");
-} catch ( e ) {
-  result = expect;
-  exception = e.toString();
-}
-
-new TestCase(
-  SECTION,
-  "export = true" +
-  " (threw " + exception +")",
-  expect,
-  result );
-
-test();
deleted file mode 100644
--- a/js/src/tests/ecma_2/Exceptions/lexical-022.js
+++ /dev/null
@@ -1,54 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          lexical-022
-   Corresponds To      7.4.3-15-n.js
-   ECMA Section:       7.4.3
-
-   Description:
-   The following words are used as keywords in proposed extensions and are
-   therefore reserved to allow for the possibility of future adoption of
-   those extensions.
-
-   FutureReservedWord :: one of
-   case    debugger    export      super
-   catch   default     extends     switch
-   class   do          finally     throw
-   const   enum        import      try
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-var SECTION = "lexical-022.js";
-var VERSION = "ECMA_1";
-var TITLE   = "Future Reserved Words";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var result = "Failed";
-var exception = "No exception thrown";
-var expect = "Passed";
-
-try {
-  eval("import = true;");
-} catch ( e ) {
-  result = expect;
-  exception = e.toString();
-}
-
-new TestCase(
-  SECTION,
-  "import = true" +
-  " (threw " + exception +")",
-  expect,
-  result );
-
-test();
-
-
deleted file mode 100644
--- a/js/src/tests/ecma_2/RegExp/exec-001.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
- *  File Name:          RegExp/exec-001.js
- *  ECMA Section:       15.7.5.3
- *  Description:        Based on ECMA 2 Draft 7 February 1999
- *
- *  Author:             christine@netscape.com
- *  Date:               19 February 1999
- */
-var SECTION = "RegExp/exec-001";
-var VERSION = "ECMA_2";
-var TITLE   = "RegExp.prototype.exec(string)";
-
-startTest();
-
-/*
- * for each test case, verify:
- * - type of object returned
- * - length of the returned array
- * - value of lastIndex
- * - value of index
- * - value of input
- * - value of the array indices
- */
-
-// test cases without subpatterns
-// test cases with subpatterns
-// global property is true
-// global property is false
-// test cases in which the exec returns null
-
-AddTestCase("NO TESTS EXIST", "PASSED", "Test not implemented");
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/ecma_3/Statements/regress-121744.js
+++ /dev/null
@@ -1,184 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/*
- *
- * Date:    30 Jan 2002
- * Revised: 10 Apr 2002
- * Revised: 14 July 2002
- *
- * SUMMARY: JS should error on |for(i in undefined)|, |for(i in null)|
- * See http://bugzilla.mozilla.org/show_bug.cgi?id=121744
- *
- * ECMA-262 3rd Edition Final spec says such statements should error. See:
- *
- *               Section 12.6.4  The for-in Statement
- *               Section 9.9     ToObject
- *
- *
- * BUT: SpiderMonkey has decided NOT to follow this; it's a bug in the spec.
- * See http://bugzilla.mozilla.org/show_bug.cgi?id=131348
- *
- * UPDATE: Rhino has also decided not to follow the spec on this.
- * See http://bugzilla.mozilla.org/show_bug.cgi?id=136893
- *
-
- |--------------------------------------------------------------------|
- |                                                                    |
- | So for now, adding an early return for this test so it won't run.  |
- |                                                                    |
- |--------------------------------------------------------------------|
-
- *
- */
-//-----------------------------------------------------------------------------
-var UBound = 0;
-var BUGNUMBER = 121744;
-var summary = 'JS should error on |for(i in undefined)|, |for(i in null)|';
-var TEST_PASSED = 'TypeError';
-var TEST_FAILED = 'Generated an error, but NOT a TypeError!';
-var TEST_FAILED_BADLY = 'Did not generate ANY error!!!';
-var status = '';
-var statusitems = [];
-var actual = '';
-var actualvalues = [];
-var expect= '';
-var expectedvalues = [];
-
-/*
- * AS OF 14 JULY 2002, DON'T RUN THIS TEST IN EITHER RHINO OR SPIDERMONKEY -
- */
-quit();
-
-
-status = inSection(1);
-expect = TEST_PASSED;
-actual = TEST_FAILED_BADLY;
-/*
- * OK, this should generate a TypeError
- */
-try
-{
-  for (var i in undefined)
-  {
-    print(i);
-  }
-}
-catch(e)
-{
-  if (e instanceof TypeError)
-    actual = TEST_PASSED;
-  else
-    actual = TEST_FAILED;
-}
-addThis();
-
-
-
-status = inSection(2);
-expect = TEST_PASSED;
-actual = TEST_FAILED_BADLY;
-/*
- * OK, this should generate a TypeError
- */
-try
-{
-  for (var i in null)
-  {
-    print(i);
-  }
-}
-catch(e)
-{
-  if (e instanceof TypeError)
-    actual = TEST_PASSED;
-  else
-    actual = TEST_FAILED;
-}
-addThis();
-
-
-
-status = inSection(3);
-expect = TEST_PASSED;
-actual = TEST_FAILED_BADLY;
-/*
- * Variable names that cannot be looked up generate ReferenceErrors; however,
- * property names like obj.ZZZ that cannot be looked up are set to |undefined|
- *
- * Therefore, this should indirectly test | for (var i in undefined) |
- */
-try
-{
-  for (var i in this.ZZZ)
-  {
-    print(i);
-  }
-}
-catch(e)
-{
-  if(e instanceof TypeError)
-    actual = TEST_PASSED;
-  else
-    actual = TEST_FAILED;
-}
-addThis();
-
-
-
-status = inSection(4);
-expect = TEST_PASSED;
-actual = TEST_FAILED_BADLY;
-/*
- * The result of an unsuccessful regexp match is the null value
- * Therefore, this should indirectly test | for (var i in null) |
- */
-try
-{
-  for (var i in 'bbb'.match(/aaa/))
-  {
-    print(i);
-  }
-}
-catch(e)
-{
-  if(e instanceof TypeError)
-    actual = TEST_PASSED;
-  else
-    actual = TEST_FAILED;
-}
-addThis();
-
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-
-
-function addThis()
-{
-  statusitems[UBound] = status;
-  actualvalues[UBound] = actual;
-  expectedvalues[UBound] = expect;
-  UBound++;
-}
-
-
-function test()
-{
-  enterFunc('test');
-  printBugNumber(BUGNUMBER);
-  printStatus(summary);
-
-  for (var i=0; i<UBound; i++)
-  {
-    reportCompare(expectedvalues[i], actualvalues[i], statusitems[i]);
-  }
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/ecma_3/Unicode/uc-001.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-test();
-
-function test()
-{
-  enterFunc ("test");
-
-  printStatus ("Unicode format-control character (Category Cf) test.");
-  printBugNumber (23610);
-
-  reportCompare ("no error", eval('"no\u200E error"'),
-		 "Unicode format-control character test (Category Cf.)");
-   
-  exitFunc ("test");
-}
deleted file mode 100644
--- a/js/src/tests/js1_2/Array/array_split_1.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          array_split_1.js
-   ECMA Section:       Array.split()
-   Description:
-
-   These are tests from free perl suite.
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "Free Perl";
-var VERSION = "JS1_2";
-var TITLE   = "Array.split()";
-
-startTest();
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-
-new TestCase( SECTION,
-	      "('a,b,c'.split(',')).length",
-	      3,
-	      ('a,b,c'.split(',')).length );
-
-new TestCase( SECTION,
-	      "('a,b'.split(',')).length",
-	      2,
-	      ('a,b'.split(',')).length );
-
-new TestCase( SECTION,
-	      "('a'.split(',')).length",
-	      1,
-	      ('a'.split(',')).length );
-
-/*
- * Deviate from ECMA by never splitting an empty string by any separator
- * string into a non-empty array (an array of length 1 that contains the
- * empty string).
- */
-new TestCase( SECTION,
-	      "(''.split(',')).length",
-	      0,
-	      (''.split(',')).length );
-
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/Array/tostring_1.js
+++ /dev/null
@@ -1,93 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          tostring_1.js
-   ECMA Section:       Array.toString()
-   Description:
-
-   This checks the ToString value of Array objects under JavaScript 1.2.
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "JS1_2";
-var VERSION = "JS1_2";
-startTest();
-var TITLE   = "Array.toString()";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var a = new Array();
-
-var VERSION = 0;
-
-if ( version() == 120 ) {
-  VERSION = "120";
-} else {
-  VERSION = "";
-}
-
-new TestCase ( SECTION,
-	       "var a = new Array(); a.toString()",
-	       ( VERSION == "120" ? "[]" : "" ),
-	       a.toString() );
-
-a[0] = void 0;
-
-new TestCase ( SECTION,
-	       "a[0] = void 0; a.toString()",
-	       ( VERSION == "120" ? "[, ]" : "" ),
-	       a.toString() );
-
-
-new TestCase( SECTION,
-	      "a.length",
-	      1,
-	      a.length );
-
-a[1] = void 0;
-
-new TestCase( SECTION,
-	      "a[1] = void 0; a.toString()",
-	      ( VERSION == "120" ? "[, , ]" : ","  ),
-	      a.toString() );
-
-a[1] = "hi";
-
-new TestCase( SECTION,
-	      "a[1] = \"hi\"; a.toString()",
-	      ( VERSION == "120" ? "[, \"hi\"]" : ",hi" ),
-	      a.toString() );
-
-a[2] = void 0;
-
-new TestCase( SECTION,
-	      "a[2] = void 0; a.toString()",
-	      ( VERSION == "120" ?"[, \"hi\", , ]":",hi,"),
-	      a.toString() );
-
-var b = new Array(1000);
-var bstring = "";
-for ( blen=0; blen<999; blen++) {
-  bstring += ",";
-}
-
-
-new TestCase ( SECTION,
-	       "var b = new Array(1000); b.toString()",
-	       ( VERSION == "120" ? "[1000]" : bstring ),
-	       b.toString() );
-
-
-new TestCase( SECTION,
-	      "b.length",
-	      ( VERSION == "120" ? 1 : 1000 ),
-	      b.length );
-
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/Array/tostring_2.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          tostring_2.js
-   Reference:          http://scopus.mcom.com/bugsplat/show_bug.cgi?id=114564
-   Description:        toString in version 120
-
-
-   Author:             christine@netscape.com
-   Date:               15 June 1998
-*/
-
-var SECTION = "Array/tostring_2.js";
-var VERSION = "JS_12";
-startTest();
-var TITLE   = "Array.toString";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var a = [];
-
-
-if ( version() == 120 ) {
-  VERSION = "120";
-} else {
-  VERSION = "";
-}
-
-new TestCase ( SECTION,
-	       "a.toString()",
-	       ( VERSION == "120" ? "[]" : "" ),
-	       a.toString() );
-
-new TestCase ( SECTION,
-	       "String( a )",
-	       ( VERSION == "120" ? "[]" : "" ),
-	       String( a ) );
-
-new TestCase ( SECTION,
-	       "a +''",
-	       ( VERSION == "120" ? "[]" : "" ),
-	       a+"" );
-
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/Objects/toString-001.js
+++ /dev/null
@@ -1,87 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          toString_1.js
-   ECMA Section:       Object.toString()
-   Description:
-
-   This checks the ToString value of Object objects under JavaScript 1.2.
-
-   In JavaScript 1.2, Object.toString()
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "JS1_2";
-var VERSION = "JS1_2";
-startTest();
-var TITLE   = "Object.toString()";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var o = new Object();
-
-new TestCase( SECTION,
-	      "var o = new Object(); o.toString()",
-	      "{}",
-	      o.toString() );
-
-o = {};
-
-new TestCase( SECTION,
-	      "o = {}; o.toString()",
-	      "{}",
-	      o.toString() );
-
-o = { name:"object", length:0, value:"hello" }
-
-  new TestCase( SECTION,
-		"o = { name:\"object\", length:0, value:\"hello\" }; o.toString()",
-		true,
-		checkObjectToString(o.toString(), ['name:"object"', 'length:0',
-						   'value:"hello"']));
-
-o = { name:"object", length:0, value:"hello",
-      toString:new Function( "return this.value+''" ) }
-
-  new TestCase( SECTION,
-		"o = { name:\"object\", length:0, value:\"hello\", "+
-		"toString:new Function( \"return this.value+''\" ) }; o.toString()",
-		"hello",
-		o.toString() );
-
-
-
-test();
-
-/**
- * checkObjectToString
- *
- * In JS1.2, Object.prototype.toString returns a representation of the
- * object's properties as a string. However, the order of the properties
- * in the resulting string is not specified. This function compares the
- * resulting string with an array of strings to make sure that the
- * resulting string is some permutation of the strings in the array.
- */
-function checkObjectToString(s, a) {
-  var m = /^\{(.*)\}$/(s);
-  if (!m)
-    return false;	// should begin and end with curly brackets
-  var a2 = m[1].split(", ");
-  if (a.length != a2.length)
-    return false;	// should be same length
-  a.sort();
-  a2.sort();
-  for (var i=0; i < a.length; i++) {
-    if (a[i] != a2[i])
-      return false;	// should have identical elements
-  }
-  return true;
-}
-
deleted file mode 100644
--- a/js/src/tests/js1_2/String/concat.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     concat.js
-   Description:  'This tests the new String object method: concat'
-
-   Author:       NickLerissa
-   Date:         Fri Feb 13 09:58:28 PST 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-startTest();
-var TITLE = 'String:concat';
-
-writeHeaderToLog('Executing script: concat.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var aString = new String("test string");
-var bString = new String(" another ");
-
-new TestCase( SECTION, "aString.concat(' more')", "test string more",     aString.concat(' more').toString());
-new TestCase( SECTION, "aString.concat(bString)", "test string another ", aString.concat(bString).toString());
-new TestCase( SECTION, "aString                ", "test string",          aString.toString());
-new TestCase( SECTION, "bString                ", " another ",            bString.toString());
-new TestCase( SECTION, "aString.concat(345)    ", "test string345",       aString.concat(345).toString());
-new TestCase( SECTION, "aString.concat(true)   ", "test stringtrue",      aString.concat(true).toString());
-new TestCase( SECTION, "aString.concat(null)   ", "test stringnull",      aString.concat(null).toString());
-new TestCase( SECTION, "aString.concat([])     ", "test string[]",          aString.concat([]).toString());
-new TestCase( SECTION, "aString.concat([1,2,3])", "test string[1, 2, 3]",     aString.concat([1,2,3]).toString());
-
-new TestCase( SECTION, "'abcde'.concat(' more')", "abcde more",     'abcde'.concat(' more').toString());
-new TestCase( SECTION, "'abcde'.concat(bString)", "abcde another ", 'abcde'.concat(bString).toString());
-new TestCase( SECTION, "'abcde'                ", "abcde",          'abcde');
-new TestCase( SECTION, "'abcde'.concat(345)    ", "abcde345",       'abcde'.concat(345).toString());
-new TestCase( SECTION, "'abcde'.concat(true)   ", "abcdetrue",      'abcde'.concat(true).toString());
-new TestCase( SECTION, "'abcde'.concat(null)   ", "abcdenull",      'abcde'.concat(null).toString());
-new TestCase( SECTION, "'abcde'.concat([])     ", "abcde[]",          'abcde'.concat([]).toString());
-new TestCase( SECTION, "'abcde'.concat([1,2,3])", "abcde[1, 2, 3]",     'abcde'.concat([1,2,3]).toString());
-
-//what should this do:
-new TestCase( SECTION, "'abcde'.concat()       ", "abcde",          'abcde'.concat().toString());
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/Function_object.js
+++ /dev/null
@@ -1,54 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     Function_object.js
-   Description:  'Testing Function objects'
-
-   Author:       Nick Lerissa
-   Date:         April 17, 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-startTest();
-var TITLE = 'functions: Function_object';
-
-writeHeaderToLog('Executing script: Function_object.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-
-function a_test_function(a,b,c)
-{
-  return a + b + c;
-}
-
-f = a_test_function;
-
-
-new TestCase( SECTION, "f.name",
-	      'a_test_function',  f.name);
-
-new TestCase( SECTION, "f.length",
-	      3,  f.length);
-
-new TestCase( SECTION, "f.arity",
-	      3,  f.arity);
-
-new TestCase( SECTION, "f(2,3,4)",
-	      9,  f(2,3,4));
-
-var fnName = (version() == 120) ? '' : 'anonymous';
-
-new TestCase( SECTION, "(new Function()).name",
-	      fnName, (new Function()).name);
-
-new TestCase( SECTION, "(new Function()).toString()",
-	      'function ' + fnName + '() {\n}',  (new Function()).toString());
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/Number.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     Number.js
-   Description:  'This tests the function Number(Object)'
-
-   Author:       Nick Lerissa
-   Date:         Fri Feb 13 09:58:28 PST 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-var TITLE = 'functions: Number';
-var BUGNUMBER="123435";
-
-startTest();
-writeHeaderToLog('Executing script: Number.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-date = new Date(2200);
-
-new TestCase( SECTION, "Number(new Date(2200))  ",
-	      2200,  (Number(date)));
-new TestCase( SECTION, "Number(true)            ",
-	      1,  (Number(true)));
-new TestCase( SECTION, "Number(false)           ",
-	      0,  (Number(false)));
-new TestCase( SECTION, "Number('124')           ",
-	      124,  (Number('124')));
-new TestCase( SECTION, "Number('1.23')          ",
-	      1.23,  (Number('1.23')));
-new TestCase( SECTION, "Number({p:1})           ",
-	      NaN,  (Number({p:1})));
-new TestCase( SECTION, "Number(null)            ",
-	      0,  (Number(null)));
-new TestCase( SECTION, "Number(-45)             ",
-	      -45,  (Number(-45)));
-
-// http://scopus.mcom.com/bugsplat/show_bug.cgi?id=123435
-// under js1.2, Number([1,2,3]) should return 3.
-
-new TestCase( SECTION, "Number([1,2,3])         ",
-	      3,  (Number([1,2,3])));
-
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/String.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     String.js
-   Description:  'This tests the function String(Object)'
-
-   Author:       Nick Lerissa
-   Date:         Fri Feb 13 09:58:28 PST 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-startTest();
-var TITLE = 'functions: String';
-
-writeHeaderToLog('Executing script: String.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-new TestCase( SECTION, "String(true)            ",
-	      'true',  (String(true)));
-new TestCase( SECTION, "String(false)           ",
-	      'false',  (String(false)));
-new TestCase( SECTION, "String(-124)           ",
-	      '-124',  (String(-124)));
-new TestCase( SECTION, "String(1.23)          ",
-	      '1.23',  (String(1.23)));
-new TestCase( SECTION, "String({p:1})           ",
-	      '{p:1}',  (String({p:1})));
-new TestCase( SECTION, "String(null)            ",
-	      'null',  (String(null)));
-new TestCase( SECTION, "String([1,2,3])            ",
-	      '[1, 2, 3]',  (String([1,2,3])));
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/function-001-n.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
- *  File Name:          boolean-001.js
- *  Description:
- *
- *  http://scopus.mcom.com/bugsplat/show_bug.cgi?id=99232
- *
- *  eval("function f(){}function g(){}") at top level is an error for JS1.2
- *     and above (missing ; between named function expressions), but declares f
- *     and g as functions below 1.2.
- *
- * Fails to produce error regardless of version:
- * js> version(100)
- * 120
- * js> eval("function f(){}function g(){}")
- * js> version(120);
- * 100
- * js> eval("function f(){}function g(){}")
- * js>
- *  Author:             christine@netscape.com
- *  Date:               11 August 1998
- */
-var SECTION = "function-001.js";
-var VERSION = "JS1_1";
-var TITLE   = "functions not separated by semicolons are errors in version 120 and higher";
-var BUGNUMBER="99232";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-new TestCase(
-  SECTION,
-  "eval(\"function f(){}function g(){}\")",
-  "error",
-  eval("function f(){}function g(){}") );
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/length.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          15.3.5.1.js
-   ECMA Section:       Function.length
-   Description:
-
-   The value of the length property is usually an integer that indicates the
-   "typical" number of arguments expected by the function.  However, the
-   language permits the function to be invoked with some other number of
-   arguments. The behavior of a function when invoked on a number of arguments
-   other than the number specified by its length property depends on the function.
-
-   This checks the pre-ecma behavior Function.length.
-
-   http://scopus.mcom.com/bugsplat/show_bug.cgi?id=104204
-
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "function/length.js";
-var VERSION = "ECMA_1";
-var TITLE   = "Function.length";
-var BUGNUMBER="104204";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var f = new Function( "a","b", "c", "return f.length");
-
-if ( version() <= 120 ) {
-
-  new TestCase( SECTION,
-		'var f = new Function( "a","b", "c", "return f.length"); f()',
-		0,
-		f() );
-
-  new TestCase( SECTION,
-		'var f = new Function( "a","b", "c", "return f.length"); f(1,2,3,4,5)',
-		5,
-		f(1,2,3,4,5) );
-} else {
-
-  new TestCase( SECTION,
-		'var f = new Function( "a","b", "c", "return f.length"); f()',
-		3,
-		f() );
-
-  new TestCase( SECTION,
-		'var f = new Function( "a","b", "c", "return f.length"); f(1,2,3,4,5)',
-		3,
-		f(1,2,3,4,5) );
-
-
-}
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/function/regexparg-2-n.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          regexparg-1.js
-   Description:
-
-   Regression test for
-   http://scopus/bugsplat/show_bug.cgi?id=122787
-   Passing a regular expression as the first constructor argument fails
-
-   Author:             christine@netscape.com
-   Date:               15 June 1998
-*/
-
-var SECTION = "JS_1.2";
-var VERSION = "JS_1.2";
-startTest();
-var TITLE   = "The variable statement";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-function f(x) {return x;}
-
-x = f(/abc/);
-
-DESCRIPTION = "function f(x) {return x;}; x = f(/abc/); x()";
-EXPECTED = "error";
-
-new TestCase( SECTION,
-	      "function f(x) {return x;}; x = f(/abc/); x()",
-	      "error",
-	      x() );
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/function/tostring-1.js
+++ /dev/null
@@ -1,112 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          tostring-1.js
-   Section:            Function.toString
-   Description:
-
-   Since the behavior of Function.toString() is implementation-dependent,
-   toString tests for function are not in the ECMA suite.
-
-   Currently, an attempt to parse the toString output for some functions
-   and verify that the result is something reasonable.
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "tostring-1";
-var VERSION = "JS1_2";
-startTest();
-var TITLE   = "Function.toString()";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var tab = "    ";
-
-t1 = new TestFunction( "stub", "value", tab + "return value;" );
-
-t2 = new TestFunction( "ToString", "object", tab+"return object + \"\";" );
-
-t3 = new TestFunction( "Add", "a, b, c, d, e",  tab +"var s = a + b + c + d + e;\n" +
-		       tab + "return s;" );
-
-t4 = new TestFunction( "noop", "value" );
-
-t5 = new TestFunction( "anonymous", "", tab+"return \"hello!\";" );
-
-var f = new Function( "return \"hello!\"");
-
-new TestCase( SECTION,
-	      "stub.toString()",
-	      t1.valueOf(),
-	      stub.toString() );
-
-new TestCase( SECTION,
-	      "ToString.toString()",
-	      t2.valueOf(),
-	      ToString.toString() );
-
-new TestCase( SECTION,
-	      "Add.toString()",
-	      t3.valueOf(),
-	      Add.toString() );
-
-new TestCase( SECTION,
-	      "noop.toString()",
-	      t4.toString(),
-	      noop.toString() );
-
-new TestCase( SECTION,
-	      "f.toString()",
-	      t5.toString(),
-	      f.toString() );
-test();
-
-function noop( value ) {
-}
-function Add( a, b, c, d, e ) {
-  var s = a + b + c + d + e;
-  return s;
-}
-function stub( value ) {
-  return value;
-}
-function ToString( object ) {
-  return object + "";
-}
-
-function ToBoolean( value ) {
-  if ( value == 0 || value == NaN || value == false ) {
-    return false;
-  } else {
-    return true;
-  }
-}
-
-function TestFunction( name, args, body ) {
-  if ( name == "anonymous" && version() == 120 ) {
-    name = "";
-  }
-
-  this.name = name;
-  this.arguments = args.toString();
-  this.body = body;
-
-  /* the format of Function.toString() in JavaScript 1.2 is:
-     function name ( arguments ) {
-     body
-     }
-  */
-  this.value = "function " + (name ? name : "" )+
-    "("+args+") {\n"+ (( body ) ? body +"\n" : "") + "}";
-
-  this.toString = new Function( "return this.value" );
-  this.valueOf = new Function( "return this.value" );
-  return this;
-}
deleted file mode 100644
--- a/js/src/tests/js1_2/function/tostring-2.js
+++ /dev/null
@@ -1,155 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   File Name:          tostring-1.js
-   Section:            Function.toString
-   Description:
-
-   Since the behavior of Function.toString() is implementation-dependent,
-   toString tests for function are not in the ECMA suite.
-
-   Currently, an attempt to parse the toString output for some functions
-   and verify that the result is something reasonable.
-
-   This verifies
-   http://scopus.mcom.com/bugsplat/show_bug.cgi?id=99212
-
-   Author:             christine@netscape.com
-   Date:               12 november 1997
-*/
-
-var SECTION = "tostring-2";
-var VERSION = "JS1_2";
-var TITLE   = "Function.toString()";
-var BUGNUMBER="123444";
-startTest();
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-var tab = "    ";
-
-
-var equals = new TestFunction( "Equals", "a, b", tab+ "return a == b;" );
-function Equals (a, b) {
-  return a == b;
-}
-
-var reallyequals = new TestFunction( "ReallyEquals", "a, b",
-				     ( version() <= 120 )  ? tab +"return a == b;" : tab +"return a === b;" );
-function ReallyEquals( a, b ) {
-  return a === b;
-}
-
-var doesntequal = new TestFunction( "DoesntEqual", "a, b", tab + "return a != b;" );
-function DoesntEqual( a, b ) {
-  return a != b;
-}
-
-var reallydoesntequal = new TestFunction( "ReallyDoesntEqual", "a, b",
-					  ( version() <= 120 ) ? tab +"return a != b;"  : tab +"return a !== b;" );
-function ReallyDoesntEqual( a, b ) {
-  return a !== b;
-}
-
-var testor = new TestFunction( "TestOr", "a",  tab+"if (a == null || a == void 0) {\n"+
-			       tab +tab+"return 0;\n"+tab+"} else {\n"+tab+tab+"return a;\n"+tab+"}" );
-function TestOr( a ) {
-  if ( a == null || a == void 0 )
-    return 0;
-  else
-    return a;
-}
-
-var testand = new TestFunction( "TestAnd", "a", tab+"if (a != null && a != void 0) {\n"+
-				tab+tab+"return a;\n" + tab+ "} else {\n"+tab+tab+"return 0;\n"+tab+"}" );
-function TestAnd( a ) {
-  if ( a != null && a != void 0 )
-    return a;
-  else
-    return 0;
-}
-
-var or = new TestFunction( "Or", "a, b", tab + "return a | b;" );
-function Or( a, b ) {
-  return a | b;
-}
-
-var and = new TestFunction( "And", "a, b", tab + "return a & b;" );
-function And( a, b ) {
-  return a & b;
-}
-
-var xor = new TestFunction( "XOr", "a, b", tab + "return a ^ b;" );
-function XOr( a, b ) {
-  return a ^ b;
-}
-
-new TestCase( SECTION,
-	      "Equals.toString()",
-	      equals.valueOf(),
-	      Equals.toString() );
-
-new TestCase( SECTION,
-	      "ReallyEquals.toString()",
-	      reallyequals.valueOf(),
-	      ReallyEquals.toString() );
-
-new TestCase( SECTION,
-	      "DoesntEqual.toString()",
-	      doesntequal.valueOf(),
-	      DoesntEqual.toString() );
-
-new TestCase( SECTION,
-	      "ReallyDoesntEqual.toString()",
-	      reallydoesntequal.valueOf(),
-	      ReallyDoesntEqual.toString() );
-
-new TestCase( SECTION,
-	      "TestOr.toString()",
-	      testor.valueOf(),
-	      TestOr.toString() );
-
-new TestCase( SECTION,
-	      "TestAnd.toString()",
-	      testand.valueOf(),
-	      TestAnd.toString() );
-
-new TestCase( SECTION,
-	      "Or.toString()",
-	      or.valueOf(),
-	      Or.toString() );
-
-new TestCase( SECTION,
-	      "And.toString()",
-	      and.valueOf(),
-	      And.toString() );
-
-new TestCase( SECTION,
-	      "XOr.toString()",
-	      xor.valueOf(),
-	      XOr.toString() );
-
-test();
-
-function TestFunction( name, args, body ) {
-  this.name = name;
-  this.arguments = args.toString();
-  this.body = body;
-
-  /* the format of Function.toString() in JavaScript 1.2 is:
-     function name ( arguments ) {
-     body
-     }
-  */
-  this.value = "function " + (name ? name : "anonymous" )+
-    "("+args+") {\n"+ (( body ) ? body +"\n" : "") + "}";
-
-  this.toString = new Function( "return this.value" );
-  this.valueOf = new Function( "return this.value" );
-  return this;
-}
deleted file mode 100644
--- a/js/src/tests/js1_2/operator/equality.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     equality.js
-   Description:  'This tests the operator =='
-
-   Author:       Nick Lerissa
-   Date:         Fri Feb 13 09:58:28 PST 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-startTest();
-var TITLE = 'operator "=="';
-
-writeHeaderToLog('Executing script: equality.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-// the following two tests are incorrect
-//new TestCase( SECTION, "(new String('') == new String(''))       ",
-//                                            true,   (new String('') == new String('')));
-
-//new TestCase( SECTION, "(new Boolean(true) == new Boolean(true)) ",
-//                                            true,   (new Boolean(true) == new Boolean(true)));
-
-new TestCase( SECTION, "(new String('x') == 'x')                 ",
-	      false,   (new String('x') == 'x'));
-
-new TestCase( SECTION, "('x' == new String('x'))                 ",
-	      false,   ('x' == new String('x')));
-
-
-test();
-
deleted file mode 100644
--- a/js/src/tests/js1_2/regexp/RegExp_lastIndex.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     RegExp_lastIndex.js
-   Description:  'Tests RegExps lastIndex property'
-
-   Author:       Nick Lerissa
-   Date:         March 17, 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-var TITLE   = 'RegExp: lastIndex';
-var BUGNUMBER="123802";
-
-startTest();
-writeHeaderToLog('Executing script: RegExp_lastIndex.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-// re=/x./g; re.lastIndex=4; re.exec('xyabcdxa');
-re=/x./g;
-re.lastIndex=4;
-new TestCase ( SECTION, "re=/x./g; re.lastIndex=4; re.exec('xyabcdxa')",
-	       '["xa"]', String(re.exec('xyabcdxa')));
-
-// re.lastIndex
-new TestCase ( SECTION, "re.lastIndex",
-	       8, re.lastIndex);
-
-// re.exec('xyabcdef');
-new TestCase ( SECTION, "re.exec('xyabcdef')",
-	       null, re.exec('xyabcdef'));
-
-// re.lastIndex
-new TestCase ( SECTION, "re.lastIndex",
-	       0, re.lastIndex);
-
-// re.exec('xyabcdef');
-new TestCase ( SECTION, "re.exec('xyabcdef')",
-	       '["xy"]', String(re.exec('xyabcdef')));
-
-// re.lastIndex=30; re.exec('123xaxbxc456');
-re.lastIndex=30;
-new TestCase ( SECTION, "re.lastIndex=30; re.exec('123xaxbxc456')",
-	       null, re.exec('123xaxbxc456'));
-
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/regexp/string_split.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
-   Filename:     string_split.js
-   Description:  'Tests the split method on Strings using regular expressions'
-
-   Author:       Nick Lerissa
-   Date:         March 11, 1998
-*/
-
-var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
-var VERSION = 'no version';
-startTest();
-var TITLE   = 'String: split';
-
-writeHeaderToLog('Executing script: string_split.js');
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-
-// 'a b c de f'.split(/\s/)
-new TestCase ( SECTION, "'a b c de f'.split(/\s/)",
-	       String(["a","b","c","de","f"]), String('a b c de f'.split(/\s/)));
-
-// 'a b c de f'.split(/\s/,3)
-new TestCase ( SECTION, "'a b c de f'.split(/\s/,3)",
-	       String(["a","b","c"]), String('a b c de f'.split(/\s/,3)));
-
-// 'a b c de f'.split(/X/)
-new TestCase ( SECTION, "'a b c de f'.split(/X/)",
-	       String(["a b c de f"]), String('a b c de f'.split(/X/)));
-
-// 'dfe23iu 34 =+65--'.split(/\d+/)
-new TestCase ( SECTION, "'dfe23iu 34 =+65--'.split(/\d+/)",
-	       String(["dfe","iu "," =+","--"]), String('dfe23iu 34 =+65--'.split(/\d+/)));
-
-// 'dfe23iu 34 =+65--'.split(new RegExp('\d+'))
-new TestCase ( SECTION, "'dfe23iu 34 =+65--'.split(new RegExp('\\d+'))",
-	       String(["dfe","iu "," =+","--"]), String('dfe23iu 34 =+65--'.split(new RegExp('\\d+'))));
-
-// 'abc'.split(/[a-z]/)
-new TestCase ( SECTION, "'abc'.split(/[a-z]/)",
-	       String(["","",""]), String('abc'.split(/[a-z]/)));
-
-// 'abc'.split(/[a-z]/)
-new TestCase ( SECTION, "'abc'.split(/[a-z]/)",
-	       String(["","",""]), String('abc'.split(/[a-z]/)));
-
-// 'abc'.split(new RegExp('[a-z]'))
-new TestCase ( SECTION, "'abc'.split(new RegExp('[a-z]'))",
-	       String(["","",""]), String('abc'.split(new RegExp('[a-z]'))));
-
-// 'abc'.split(new RegExp('[a-z]'))
-new TestCase ( SECTION, "'abc'.split(new RegExp('[a-z]'))",
-	       String(["","",""]), String('abc'.split(new RegExp('[a-z]'))));
-
-test();
deleted file mode 100644
--- a/js/src/tests/js1_2/version120/boolean-001.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
- *  File Name:          boolean-001.js
- *  Description:
- *
- *  In JavaScript 1.2, new Boolean(false) evaluates to false.
- *
- *  Author:             christine@netscape.com
- *  Date:               11 August 1998
- */
-var SECTION = "boolean-001.js";
-var VERSION = "JS1_2";
-startTest();
-var TITLE   = "new Boolean(false) should evaluate to false";
-
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-BooleanTest( "new Boolean(true)",  new Boolean(true),  true );
-BooleanTest( "new Boolean(false)", new Boolean(false), false );
-BooleanTest( "true",               true,               true );
-BooleanTest( "false",              false,              false );
-
-test();
-
-function BooleanTest( string, object, expect ) {
-  if ( object ) {
-    result = true;
-  } else {
-    result = false;
-  }
-
-  new TestCase(
-    SECTION,
-    string,
-    expect,
-    result );
-}
-
deleted file mode 100644
--- a/js/src/tests/js1_2/version120/regress-99663.js
+++ /dev/null
@@ -1,132 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-//-----------------------------------------------------------------------------
-var UBound = 0;
-var BUGNUMBER = 99663;
-var summary = 'Regression test for Bugzilla bug 99663';
-/*
- * This testcase expects error messages containing
- * the phrase 'read-only' or something similar -
- */
-var READONLY = /read\s*-?\s*only/;
-var READONLY_TRUE = 'a "read-only" error';
-var READONLY_FALSE = 'Error: ';
-var FAILURE = 'NO ERROR WAS GENERATED!';
-var status = '';
-var actual = '';
-var expect= '';
-var statusitems = [];
-var expectedvalues = [];
-var actualvalues = [];
-
-
-/*
- * These MUST be compiled in JS1.2 or less for the test to work - see above
- */
-function f1()
-{
-  with (it)
-  {
-    for (rdonly in this);
-  }
-}
-
-
-function f2()
-{
-  for (it.rdonly in this);
-}
-
-
-function f3(s)
-{
-  for (it[s] in this);
-}
-
-
-
-/*
- * Begin testing by capturing actual vs. expected values.
- * Initialize to FAILURE; this will get reset if all goes well -
- */
-actual = FAILURE;
-try
-{
-  f1();
-}
-catch(e)
-{
-  actual = readOnly(e.message);
-}
-expect= READONLY_TRUE;
-status = 'Section 1 of test - got ' + actual;
-addThis();
-
-
-actual = FAILURE;
-try
-{
-  f2();
-}
-catch(e)
-{
-  actual = readOnly(e.message);
-}
-expect= READONLY_TRUE;
-status = 'Section 2 of test - got ' + actual;
-addThis();
-
-
-actual = FAILURE;
-try
-{
-  f3('rdonly');
-}
-catch(e)
-{
-  actual = readOnly(e.message);
-}
-expect= READONLY_TRUE;
-status = 'Section 3 of test - got ' + actual;
-addThis();
-
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-
-
-function readOnly(msg)
-{
-  if (msg.match(READONLY))
-    return READONLY_TRUE;
-  return READONLY_FALSE + msg;
-}
-
-
-function addThis()
-{
-  statusitems[UBound] = status;
-  actualvalues[UBound] = actual;
-  expectedvalues[UBound] = expect;
-  UBound++;
-}
-
-
-function test()
-{
-  print ('Bug Number ' + bug);
-  print ('STATUS: ' + summary);
-
-  for (var i=0; i<UBound; i++)
-  {
-    writeTestCaseResult(expectedvalues[i], actualvalues[i], statusitems[i]);
-  }
-}
deleted file mode 100644
--- a/js/src/tests/js1_3/Script/function-001-n.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
- *  File Name:          boolean-001.js
- *  Description:
- *
- *  http://scopus.mcom.com/bugsplat/show_bug.cgi?id=99232
- *
- *  eval("function f(){}function g(){}") at top level is an error for JS1.2
- *     and above (missing ; between named function expressions), but declares f
- *     and g as functions below 1.2.
- *
- * Fails to produce error regardless of version:
- * js> version(100)
- * 120
- * js> eval("function f(){}function g(){}")
- * js> version(120);
- * 100
- * js> eval("function f(){}function g(){}")
- * js>
- *  Author:             christine@netscape.com
- *  Date:               11 August 1998
- */
-var SECTION = "function-001.js";
-var VERSION = "JS_1.3";
-var TITLE   = "functions not separated by semicolons are errors in version 120 and higher";
-var BUGNUMBER="10278";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-new TestCase(
-  SECTION,
-  "eval(\"function f(){}function g(){}\")",
-  "error",
-  eval("function f(){}function g(){}") );
-
-test();
-
-
deleted file mode 100644
--- a/js/src/tests/js1_3/regress/function-001-n.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/**
- *  File Name:          boolean-001.js
- *  Description:
- *
- *  http://scopus.mcom.com/bugsplat/show_bug.cgi?id=99232
- *
- *  eval("function f(){}function g(){}") at top level is an error for JS1.2
- *     and above (missing ; between named function expressions), but declares f
- *     and g as functions below 1.2.
- *
- * Fails to produce error regardless of version:
- * js> version(100)
- * 120
- * js> eval("function f(){}function g(){}")
- * js> version(120);
- * 100
- * js> eval("function f(){}function g(){}")
- * js>
- *  Author:             christine@netscape.com
- *  Date:               11 August 1998
- */
-var SECTION = "function-001.js";
-var VERSION = "JS_1.3";
-var TITLE   = "functions not separated by semicolons are errors in version 120 and higher";
-var BUGNUMBER="10278";
-
-startTest();
-writeHeaderToLog( SECTION + " "+ TITLE);
-
-new TestCase(
-  SECTION,
-  "eval(\"function f(){}function g(){}\")",
-  "error",
-  eval("function f(){}function g(){}") );
-
-test();
-
-
deleted file mode 100644
--- a/js/src/tests/js1_5/GetSet/regress-353264.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 353264;
-var summary = 'Do not crash defining getter';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-this.x getter= function () { }; export x; x;
- 
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-106244.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 106244;
-var summary = 'No warning in strict mode if (a = b && c == d)...';
-var actual = '';
-var expect = 'test for equality (==) mistyped as assignment (=)?';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-options('strict');
-options('werror');
-
-var a = false;
-var b = true;
-var c = false;
-var d = true;
-var result;
-
-try
-{
-  if (a = b && c == d)
-    result = true;
-  else
-    result = false;
-}
-catch(ex)
-{
-  actual = ex.message;
-}
-
-print('result = ' + result);
-
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-119719.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 119719;
-var summary = 'Rethrown errors should have line number updated.';
-var actual = '';
-var expect = '';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-var err = new Error('this error was created on line 46');
-try
-{
-  throw err; // rethrow on line 49
-}
-catch(e)
-{
-  expect = 49;
-  actual = err.lineNumber;
-} 
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-173067.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 173067;
-var summary = 'Properly report / in a literal regexp class as an error';
-var actual = '';
-var expect = 'SyntaxError: unterminated character class ';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-try
-{ 
-  var re = eval('/[/]/');
-}
-catch(e)
-{
-  actual = e.toString();
-}
-
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-249211.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 249211;
-var summary = 'support export and import for 4xp';
-var actual = '';
-var expect = 'no error';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
- 
-try
-{
-  var o = {};
-  var f = function(){};
-  export *;
-  import o.*;
-  actual = 'no error';
-}
-catch(e)
-{
-  actual = 'error';
-}
-
-reportCompare(expect, actual, summary);
-
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-320119.js
+++ /dev/null
@@ -1,116 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 320119;
-var summary = 'delegating objects and arguments, arity, caller, name';
-var actual = '';
-var expect = '';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-printStatus('original test');
-
-function origtest(name, bar)
-{
-  this.name = name;
-  this.bar = bar;
-}
-
-function Monty(id, name, bar)
-{
-  this.id = id;
-  this.base = origtest;
-  this.base(name, bar);
-}
-
-Monty.prototype = origtest;
-
-function testtwo(notNamedName, bar)
-{
-  this.name = notNamedName;
-  this.bar = bar;
-}
-
-function Python(id, notNamedName, bar)
-{
-  this.id = id;
-  this.base = origtest;
-  this.base(notNamedName, bar);
-}
-
-Python.prototype = testtwo;
-
-var foo = new Monty(1, 'my name', 'sna!');
-
-var manchu = new Python(1, 'my name', 'sna!');
-
-printStatus('foo.name: ' + foo.name);
-printStatus('manchu.name: ' + manchu.name);
-
-expect = 'my name:my name';
-actual = foo.name + ':' + manchu.name;
-reportCompare(expect, actual, summary + ': override function..name');
-
-// end original test
-
-printStatus('test shared properties');
-
-function testshared()
-{
-}
-
-expect = false;
-actual = testshared.hasOwnProperty('arguments');
-reportCompare(expect, actual, summary + ': arguments no longer shared');
-
-expect = false;
-actual = testshared.hasOwnProperty('caller');
-reportCompare(expect, actual, summary + ': caller no longer shared');
-
-expect = false;
-actual = testshared.hasOwnProperty('arity');
-reportCompare(expect, actual, summary + ': arity no longer shared');
-
-expect = false;
-actual = testshared.hasOwnProperty('name');
-reportCompare(expect, actual, summary + ': name no longer shared');
-
-expect = true;
-actual = testshared.hasOwnProperty('length');
-reportCompare(expect, actual, summary + ': length still shared');
-
-printStatus('test overrides');
-
-function Parent()
-{
-  this.arguments = 'oarguments';
-  this.caller = 'ocaller';
-  this.arity = 'oarity';
-  this.length = 'olength';
-  this.name = 'oname';
-}
-
-function Child()
-{
-  this.base = Parent;
-  this.base();
-}
-
-Child.prototype = Parent;
-
-Child.prototype.value = function()
-{
-  return this.arguments + ',' + this.caller + ',' + this.arity + ',' +
-  this.length + ',' + this.name;
-};
-
-var child = new Child();
-
-expect = 'oarguments,ocaller,oarity,0,oname';
-actual = child.value();
-reportCompare(expect, actual, summary + ': overrides');
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-350692.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 350692;
-var summary = 'import x["y"]["z"]';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  var x = {y: {z: function() {}}};
-
-  try
-  {
-    import x['y']['z'];
-  }
-  catch(ex)
-  {
-    reportCompare('TypeError: x["y"]["z"] is not exported', ex + '', summary);
-  }
-
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-354924.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 354924;
-var summary = 'Do not crash with export/import and setter';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  this.x setter= function(){};
-  export *;
-  t = this;
-  new Function("import t.*; import t.*;")();
-
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/Regress/regress-362583.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 362583;
-var summary = 'Do not assert: caller->fun && !JSFUN_HEAVYWEIGHT_TEST(caller->fun->flags)';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  if (typeof Script == 'undefined')
-  {
-    expect = actual = 'Script object not defined, test skipped.';
-  }
-  else
-  {
-    try
-    {
-      this.x setter= (new Script(''));
-      this.watch('x', function() { return; import p.q; });
-      x = 4;
-    }
-    catch(ex)
-    {
-    }
-  }
-
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-352281.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 352281;
-var summary = 'decompilation of |while| and function declaration';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  var f, g;
-  f = function() { { while(0) function t() {  } } }
-  expect = 'function() { while(0) { function t() {  } }}';
-  actual = f + '';
-  compareSource(expect, actual, summary);
-
-  g = eval(uneval(actual));
-  actual = g + '';
-  compareSource(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-355622.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 355622;
-var summary = 'Do not assert: overwriting';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  try
-  {
-    (function() { export arguments })();
-  }
-  catch(ex)
-  {
-  }
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-418730.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 418730;
-var summary = 'export * should not halt script';
-var actual = '';
-var expect = '';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
- 
-for (var i = 0; i < 60; ++i)
-  this["v" + i] = true;
-
-expect = 'PASS';
-actual = 'FAIL';
-
-try {
-  print("GO");
-  export *;
-  print("PASS (1)");
-} catch(e) {
-  print("PASS (2)");
-}
-
-actual = 'PASS';
-
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-421621.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 421621;
-var summary = 'Do not assert with setter, export/import: (sprop)->slot != SPROP_INVALID_SLOT || !SPROP_HAS_STUB_SETTER(sprop)';
-var actual = 'No Crash';
-var expect = 'No Crash';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
- 
-var th = this;
-this.__defineSetter__('x', function () {});
-export *;
-import th.*;
-x;
-
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-432075.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 432075;
-var summary = 'A function decompiles as [object Function] after export/import';
-var actual = '';
-var expect = '';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
- 
-var a = Function;
-var t = this;
-export *;
-import t.*;
-Function = a;
-
-expect = 'function anonymous() {}';
-actual = (new Function("")) + '';
-
-compareSource(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-437288-01.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 437288;
-var summary = 'for loop turning into a while loop';
-var actual = 'No Hang';
-var expect = 'No Hang';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  (function() { const x = 1; for (x in null); })();
-
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_5/extensions/regress-50447.js
+++ /dev/null
@@ -1,134 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-
-/*
- * SUMMARY: New properties fileName, lineNumber have been added to Error objects
- * in SpiderMonkey. These are non-ECMA extensions and do not exist in Rhino.
- *
- * See http://bugzilla.mozilla.org/show_bug.cgi?id=50447
- */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 50447;
-var summary = 'Test (non-ECMA) Error object properties fileName, lineNumber';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  testRealError();
-  test1();
-  test2();
-  test3();
-  test4();
-
-  exitFunc('test');
-}
-
-
-function testRealError()
-{
-  /* throw a real error, and see what it looks like */
-  enterFunc ("testRealError");
-
-  try
-  {
-    blabla;
-  }
-  catch (e)
-  {
-    if (e.fileName.search (/-50447\.js$/i) == -1)
-      reportCompare('PASS', 'FAIL',
-		    "expected fileName to end with '-50447.js'");
-
-    reportCompare (83, e.lineNumber,
-		   "lineNumber property returned unexpected value.");
-  }
-
-  exitFunc ("testRealError");
-}
-
-
-function test1()
-{
-  /* generate an error with msg, file, and lineno properties */
-  enterFunc ("test1");
-
-  var e = new InternalError ("msg", "file", 2);
-  reportCompare ("(new InternalError(\"msg\", \"file\", 2))",
-		 e.toSource(),
-		 "toSource() returned unexpected result.");
-  reportCompare ("file", e.fileName,
-		 "fileName property returned unexpected value.");
-  reportCompare (2, e.lineNumber,
-		 "lineNumber property returned unexpected value.");
-
-  exitFunc ("test1");
-}
-
-
-function test2()
-{
-  /* generate an error with only msg property */
-  enterFunc ("test2");
-
-  var e = new InternalError ("msg");
-  reportCompare ("(new InternalError(\"msg\", \"\"))",
-		 e.toSource(),
-		 "toSource() returned unexpected result.");
-  reportCompare ("", e.fileName,
-		 "fileName property returned unexpected value.");
-  reportCompare (0, e.lineNumber,
-		 "lineNumber property returned unexpected value.");
-
-  exitFunc ("test2");
-}
-
-
-function test3()
-{
-  /* generate an error with only msg and lineNo properties */
-  enterFunc ("test3");
-
-  var e = new InternalError ("msg");
-  e.lineNumber = 10;
-  reportCompare ("(new InternalError(\"msg\", \"\", 10))",
-		 e.toSource(),
-		 "toSource() returned unexpected result.");
-  reportCompare ("", e.fileName,
-		 "fileName property returned unexpected value.");
-  reportCompare (10, e.lineNumber,
-		 "lineNumber property returned unexpected value.");
-
-  exitFunc ("test3");
-}
-
-
-function test4()
-{
-  /* generate an error with only msg and filename properties */
-  enterFunc ("test4");
-
-  var e = new InternalError ("msg", "file");
-  reportCompare ("(new InternalError(\"msg\", \"file\"))",
-		 e.toSource(),
-		 "toSource() returned unexpected result.");
-  reportCompare ("file", e.fileName,
-		 "fileName property returned unexpected value.");
-  reportCompare (0, e.lineNumber,
-		 "lineNumber property returned unexpected value.");
-
-  exitFunc ("test4");
-}
deleted file mode 100644
--- a/js/src/tests/js1_6/Array/regress-320887.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*
- * Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/licenses/publicdomain/
- * Contributor: Blake Kaplan
- */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 320887;
-var summary = 'var x should not throw a ReferenceError';
-var actual = 'No error';
-var expect = 'No error';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-try
-{
-  (function xxx() { ["var x"].map(eval); })()
-    }
-catch(ex)
-{
-  actual = ex + '';
-}
- 
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_7/extensions/regress-353214-01.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 353214;
-var summary = 'bug 353214';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  var f = function () {
-    switch(({ get x() { export *; }, set x([[y], [x] ]) { let x; } })) {
-      case eval("[[1]]", function(id) { return id; }):
-      L:for(let x in (((eval).call)(eval("yield <x><y/></x>;",  "" ))))var x;
-      case (uneval(this)):
-      import x.*;
-    }
-  }
-
-  expect = 'function () { ' +
-    'switch({ get x() { export *; }, set x([[y], [x] ]) { let x; } }) {  ' +
-    'case eval("[[1]]", function(id) { return id; }):  ' +
-    'L:for(let x in eval.call(eval("yield <x><y/></x>;",  "" ))){var x;} ' +
-    'case uneval(this):  ' +
-    'import x.*;  default:;' +
-    '} ' +
-    '}';
-
-  actual = f + '';
-
-  compareSource(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/extensions/regress-353249.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 353249;
-var summary = 'regression test for bug 353249';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  var f = (function () { let (x) <x/>.(1) < let (z) eval('3');
-	     for (x in this) {} });
-
-  expect = 'function () { (let (x) <x/>.((1)) < (let (z) eval("3"))); ' +
-    'for (x in this) {} }';
-  actual = f + '';
-  compareSource(expect, actual, summary);
-
-  // do not crash()
-  f();
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/geniter/regress-347739.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 347739;
-var summary = 'generator_instance.close readonly and immune';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  function gen_test(test_index)
-  {
-    try {
-      yield 1;
-    } finally {
-      actual += "Inside finally: "+test_index + ' ';
-    }
-  }
-
-  actual = '';
-  expect = 'Inside finally: 1 Inside finally: 2 ';
-
-  var iter1 = gen_test(1);
-  iter1.next();
-  iter1.close = null;
-  iter1 = null;
-  gc();
-
-  var iter2 = gen_test(2);
-  for (i in iter2)
-    iter2.close = null;
-
-  reportCompare(expect, actual, summary + ': 2');
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/geniter/regress-349012-01.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 349012;
-var summary = 'closing a generator fails to report error if yield during close is ignored';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-if (typeof quit != 'undefined')
-{
-  quit(0);
-}
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  expect = "Inner finally,Outer finally";
-
-  function gen()
-  {
-    try {
-      try {
-        yield 1;
-      } finally {
-        actual += "Inner finally";
-        yield 2;
-      }
-    } finally {
-      actual += ",Outer finally";
-    }
-  }
-
-  var iter = gen();
-  iter.next();
-  iter = null;
-  gc();
-
-  reportCompare(expect, actual, summary);
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/geniter/regress-349331.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 349331;
-var summary = 'generator.close without GeneratorExit';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
- 
-  var catch1, catch2, catch3, finally1, finally2, finally3;
-  var iter;
-
-  function gen()
-  {
-    yield 1;
-    try {
-      try {
-        try {
-          yield 1;
-        } catch (e) {
-          catch1 = true;
-        } finally {
-          finally1 = true;
-        }
-      } catch (e) {
-        catch2 = true;
-      } finally {
-        finally2 = true;
-      }
-    } catch (e) {
-      catch3 = true;
-    } finally {
-      finally3 = true;
-    }
-  }
-
-// test explicit close call
-  catch1 = catch2 = catch3 = finally1 = finally2 = finally3 = false;
-  iter = gen();
-  iter.next();
-  iter.next();
-  iter.close();
-
-  var passed = !catch1 && !catch2 && !catch3 && finally1 && finally2 &&
-    finally3;
-
-  if (!passed) {
-    print("Failed!");
-    print("catch1=" + catch1 + " catch2=" + catch2 + " catch3=" +
-	  catch3);
-    print("finally1=" + finally1 + " finally2=" + finally2 +
-	  " finally3=" + finally3);
-  }
-
-  reportCompare(true, passed, 'test explicit close call');
-
-// test GC-invoked close
-  catch1 = catch2 = catch3 = finally1 = finally2 = finally3 = false;
-  iter = gen();
-  iter.next();
-  iter.next();
-  iter = null;
-  gc();
-  gc();
-
-  var passed = !catch1 && !catch2 && !catch3 && finally1 && finally2 &&
-    finally3;
-
-  if (!passed) {
-    print("Failed!");
-    print("catch1=" + catch1 + " catch2=" + catch2 + " catch3=" +
-	  catch3);
-    print("finally1=" + finally1 + " finally2=" + finally2 +
-	  " finally3="+finally3);
-  }
-  reportCompare(true, passed, 'test GC-invoke close');
-
-  reportCompare(expect, actual, summary);
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/iterable/regress-340526-02.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 340526;
-var summary = 'Iterators: cross-referenced objects with close handler can ' +
-  'delay close handler execution';
-
-printBugNumber(BUGNUMBER);
-printStatus (summary);
-
-var close_count = 0;
-
-function gen()
-{
-  try {
-    yield 0;
-  } finally {
-    ++close_count;
-  }
-}
-
-var iter1 = gen();
-var iter2 = gen();
-
-iter1.another = iter2;
-iter2.another = iter1;
-
-iter1.next();
-iter2.next();
-
-iter1 = null;
-iter2 = null;
-
-gc();
-
-var expect = 2;
-var actual = close_count;
-
-reportCompare(expect, actual, summary);
deleted file mode 100644
--- a/js/src/tests/js1_7/lexical/regress-346642-03.js
+++ /dev/null
@@ -1,124 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 346642;
-var summary = 'decompilation of destructuring assignment';
-var actual = '';
-var expect = '';
-
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  expect = 'TypeError: NaN is not a constructor';
-  actual = 'No Crash';
-  try
-  {
-    try { throw 1; } catch(e1 if 0) { } catch(e2 if (new NaN)) { }
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportCompare(expect, actual, summary + ': 1');
-
-  expect = /TypeError: x.t (has no properties|is undefined)/;
-  actual = 'No Crash';
-  try
-  {
-    z = [1];
-    let (x = (undefined ? 3 : z)) { x.t.g }
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportMatch(expect, actual, summary + ': 2');
-
-  expect = /TypeError: x.t (has no properties|is undefined)/;
-  actual = 'No Crash';
-  try
-  {
-    z = [1];
-    new Function("let (x = (undefined ? 3 : z)) { x.t.g }")()
-      }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportMatch(expect, actual, summary + ': 3');
-
-  expect = 'TypeError: b is not a constructor';
-  actual = 'No Crash';
-  try
-  {
-    with({x: (new (b = 1))}) (2).x
-      }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportCompare(expect, actual, summary + ': 4');
-
-  expect = /TypeError: this.zzz (has no properties|is undefined)/;
-  actual = 'No Crash';
-  try
-  {
-    (function(){try { } catch(f) { return; } finally { this.zzz.zzz }})();
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportMatch(expect, actual, summary + ': 5');
-
-  expect = 'TypeError: p.z = <x><y/></x> ? 3 : 4 is not a function';
-  actual = 'No Crash';
-  try
-  {
-    (new Function("if(\n({y:5, p: (print).r})) { p={}; (p.z = <x\n><y/></x> ? 3 : 4)(5) }"))();
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportCompare(expect, actual, summary + ': 6');
-
-  expect = 'TypeError: xx is not a function';
-  actual = 'No Crash';
-  try
-  {
-    switch(xx) { case 3: case (new ([3].map)): } const xx;
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportCompare(expect, actual, summary + ': 7');
-
-  expect = 'ReferenceError: x.y is not defined';
-  actual = 'No Crash';
-  try
-  {
-    x = {};
-    import x.y;
-  }
-  catch(ex)
-  {
-    actual = ex + '';
-  }
-  reportCompare(expect, actual, summary + ': 9');
-
-  exitFunc ('test');
-}
deleted file mode 100644
--- a/js/src/tests/js1_7/regress/regress-350387.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// |reftest| skip -- obsolete test
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-//-----------------------------------------------------------------------------
-var BUGNUMBER = 350387;
-var summary = 'Var declaration and let with same name';
-var actual = '';
-var expect = '';
-
-expect = undefined + '';
-actual = '';
-let (x = 2)
-{
-  var x;
-}
-actual = x + '';
-reportCompare(expect, actual, summary + ': 1');
-
-//-----------------------------------------------------------------------------
-test();
-//-----------------------------------------------------------------------------
-
-function test()
-{
-  enterFunc ('test');
-  printBugNumber(BUGNUMBER);
-  printStatus (summary);
-
-  expect = undefined + '';
-  actual = '';
-  (function () { let (x = 2) { var x; } actual = x + ''; })(); 
-  reportCompare(expect, actual, summary + ': 2');
-
-  exitFunc ('test');
-}