blob: ec873a700ccc7ab70594193af5827a926c1bbc86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.10.6.2-9-e-1
description: >
RegExp.prototype.exec - the removed step 9.e won't affected
current algorithm
---*/
var str = "Hello World!";
var regObj = new RegExp("World");
var result = false;
result = regObj.exec(str).toString() === "World";
assert(result, 'result !== true');
reportCompare(0, 0);
|