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.
This commit is contained in:
Mike Pennisi 2016-06-29 11:45:47 -04:00
parent b9587262d4
commit 9c3bb8d69e
2 changed files with 0 additions and 20 deletions

View File

@ -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)');

View File

@ -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');