| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: let P be the empty string if pattern is undefined |
| 6 |
es5id: 15.10.4.1_A3_T4 |
| 7 |
description: RegExp is new RegExp(undefined) |
| 8 |
---*/ |
| 9 |
|
| 10 |
var __re = new RegExp(undefined); |
| 11 |
|
| 12 |
//CHECK#2 |
| 13 |
if (__re.multiline !== false) { |
| 14 |
$ERROR('#2: __re = new RegExp(undefined); __re.multiline === false. Actual: ' + (__re.multiline)); |
| 15 |
} |
| 16 |
|
| 17 |
//CHECK#3 |
| 18 |
if (__re.global !== false) { |
| 19 |
$ERROR('#3: __re = new RegExp(undefined); __re.global === false. Actual: ' + (__re.global)); |
| 20 |
} |
| 21 |
|
| 22 |
//CHECK#4 |
| 23 |
if (__re.ignoreCase !== false) { |
| 24 |
$ERROR('#4: __re = new RegExp(undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); |
| 25 |
} |