-
Mike Pennisi authored
The "mainline" tests in Test262 are converging on a more formal structure. Files are organized as tests for either either "language" (e.g. syntax-driven) or "built-in" (e.g. API-driven). "Language" test locations are themselves structured according to whether the syntactic form under test is an Expression or a Statement. To limit ambiguity when locating/adding tests, re-organize the tests for Annex B extensions to match this structure.
Mike Pennisi authoredThe "mainline" tests in Test262 are converging on a more formal structure. Files are organized as tests for either either "language" (e.g. syntax-driven) or "built-in" (e.g. API-driven). "Language" test locations are themselves structured according to whether the syntactic form under test is an Expression or a Statement. To limit ambiguity when locating/adding tests, re-organize the tests for Annex B extensions to match this structure.
RegExp-decimal-escape-not-capturing.js 628 B
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
An escape sequence of the form \ followed by a nonzero decimal number n
matches the result of the nth set of capturing parentheses (see
15.10.2.11)
es5id: 15.10.2.9_A1_T4
es6id: B.1.4
description: >
Execute /\b(\w+) \2\b/.test("do you listen the the band") and
check results
---*/
var __executed = /\b(\w+) \2\b/.test("do you listen the the band");
//CHECK#1
if (__executed) {
$ERROR('#1: /\\b(\\w+) \\2\\b/.test("do you listen the the band") === false');
}