mirror of https://github.com/tc39/test262.git
25 lines
698 B
JavaScript
25 lines
698 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: "RegularExpressionFlags :: IdentifierPart"
|
|
es5id: 7.8.5_A3.1_T1
|
|
description: "IdentifierPart :: g"
|
|
---*/
|
|
|
|
//CHECK#1
|
|
var regexp = /(?:)/g;
|
|
if (regexp.global !== true) {
|
|
$ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global));
|
|
}
|
|
|
|
//CHECK#2
|
|
if (regexp.ignoreCase !== false) {
|
|
$ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === false. Actual: ' + (regexp.ignoreCase));
|
|
}
|
|
|
|
//CHECK#3
|
|
if (regexp.multiline !== false) {
|
|
$ERROR('#3: var regexp = /(?:)/g; regexp.multiline === false. Actual: ' + (regexp.multiline));
|
|
}
|