blob: 28fafd0125643468854ba6edd964081275ca5e73 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5assertEquals("a", RegExp.$1);
6assertEquals("b", RegExp.$2);
7assertEquals("c", RegExp.$3);
8assertEquals("d", RegExp.$4);
9assertEquals("e", RegExp.$5);
10assertEquals("f", RegExp.$6);
11assertEquals("g", RegExp.$7);
12assertEquals("h", RegExp.$8);
13assertEquals("i", RegExp.$9);
14
15assertEquals("abcdefghij", RegExp.lastMatch);
16assertEquals("j", RegExp.lastParen);
17assertEquals(">>>", RegExp.leftContext);
18assertEquals("<<<", RegExp.rightContext);
19assertEquals(">>>abcdefghij<<<", RegExp.input);