From 9c3bb8d69ee39978df6d423883bd3adcd9ec5eca Mon Sep 17 00:00:00 2001
From: Mike Pennisi <mike@mikepennisi.com>
Date: Wed, 29 Jun 2016 11:45:47 -0400
Subject: [PATCH] Remove invalid tests for %RegExpPrototype%

From ECMA262, section 16:

>  Except as restricted in 16.2, an implementation may provide
>  additional types, values, objects, properties, and functions beyond
>  those described in this specification.

Section 16.2 makes no mention of the `lastIndex` property of the
%RegExpPrototype% intrinsic. It is therefor not a violation to define
%such an "own" property.

Remove the tests that assert otherwise.
---
 .../RegExp/prototype/lastIndex/15.10.7.5-1.js         |  9 ---------
 .../RegExp/prototype/lastIndex/15.10.7.5-2.js         | 11 -----------
 2 files changed, 20 deletions(-)
 delete mode 100644 test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-1.js
 delete mode 100644 test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-2.js

diff --git a/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-1.js b/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-1.js
deleted file mode 100644
index 90e2f09b43..0000000000
--- a/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-1.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// Copyright (c) 2012 Ecma International.  All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-es5id: 15.10.7.5-1
-description: RegExp.prototype.lastIndex is of type Undefined
----*/
-
-assert.sameValue(typeof(RegExp.prototype.lastIndex), 'undefined', 'typeof(RegExp.prototype.lastIndex)');
diff --git a/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-2.js b/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-2.js
deleted file mode 100644
index a9a7e73c84..0000000000
--- a/test/built-ins/RegExp/prototype/lastIndex/15.10.7.5-2.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) 2012 Ecma International.  All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/*---
-es5id: 15.10.7.5-2
-description: RegExp.prototype.lastIndex is not present
----*/
-
-  var d = Object.getOwnPropertyDescriptor(RegExp.prototype, 'lastIndex');
-
-assert.sameValue(d, undefined, 'd');
-- 
GitLab