mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 13:28:38 +02:00
to literal regexp patterns is through eval and similar mechanisms (e.g., Function constructor). Fixed. All but two of the remaining disabled tests in excludelist.xml were disabled because the tests polluted the global JS environment, not because the tests themselves were invalid. This is no longer an issue as of the latest test262 harness (actually it wasn't an issue about a year ago either). Re-enabled.
18 lines
496 B
JavaScript
18 lines
496 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* RegularExpressionFlags :: IdentifierPart
|
|
*
|
|
* @path ch07/7.8/7.8.5/S7.8.5_A3.1_T9.js
|
|
* @description IdentifierPart :: \u006D (m)
|
|
*/
|
|
|
|
//CHECK#1
|
|
var regexp;
|
|
eval("regexp = /(?:)/\u006D");
|
|
if (regexp.multiline !== true) {
|
|
$ERROR('#1: var regexp = /(?:)/\\u006D; regexp.multiline === true. Actual: ' + (regexp.multiline));
|
|
}
|
|
|