mirror of
https://github.com/tc39/test262.git
synced 2025-10-14 20:38:55 +02:00
- 15.10.2.15-3-1 and 15.10.2.15-3-2 are both invalid (U+002F (SOLIDUS) instead of U+005C (REVERSE SOLIDUS) was used to start an escape sequence). - 15.10.4.1-2 and 15.10.2.2-1 are identical tests, delete the latter. - Update tests to avoid using runTestCase() function. - Update multiple test infos to point to correct algorithm step (CharacterRange step 6 instead of step 1).
17 lines
645 B
JavaScript
17 lines
645 B
JavaScript
// Copyright (c) 2012 Ecma International. All rights reserved.
|
|
// Ecma International makes this code available under the terms and conditions set
|
|
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
|
|
// "Use Terms"). Any redistribution of this code must retain the above
|
|
// copyright and this notice and otherwise comply with the Use Terms.
|
|
|
|
/*---
|
|
es5id: 15.10.4.1-1
|
|
description: >
|
|
RegExp - no TypeError is thrown when pattern is an object and
|
|
has a [[RegExpMatcher]] internal slot, and flags is not undefined
|
|
---*/
|
|
|
|
var regObj = new RegExp();
|
|
var regExpObj = new RegExp(regObj, "g");
|
|
assert(regExpObj.global);
|