diff options
Diffstat (limited to 'js/src/tests/test262/annexB/built-ins/RegExp/RegExp-decimal-escape-not-capturing.js')
-rw-r--r-- | js/src/tests/test262/annexB/built-ins/RegExp/RegExp-decimal-escape-not-capturing.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/annexB/built-ins/RegExp/RegExp-decimal-escape-not-capturing.js b/js/src/tests/test262/annexB/built-ins/RegExp/RegExp-decimal-escape-not-capturing.js new file mode 100644 index 0000000000..cd0bf7ed7e --- /dev/null +++ b/js/src/tests/test262/annexB/built-ins/RegExp/RegExp-decimal-escape-not-capturing.js @@ -0,0 +1,20 @@ +// 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"); + +assert.sameValue(executed, false); + +reportCompare(0, 0); |