1 This test checks our implementation of the special RegExp member variables.
3 Properties of RegExp at startup:
13 input: {} (read-write)
14 lastMatch: {} (read-only)
15 lastParen: {} (read-only)
16 leftContext: {} (read-only)
17 multiline: {false} (read-write)
18 rightContext: {} (read-only)
20 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(<1234567890>):
31 lastMatch: {1234567890}
37 RegExp.$0 does not exist
38 RegExp.$10 does not exist
39 RegExp doesn't use RegExp.input
40 RegExp.multiline coerces values to booleans
41 RegExp.input coerces values to strings
43 Properties of RegExp after /(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/.exec(XXX):
54 lastMatch: {1234567890}
60 ---------- [Cleared RegExp values] ----------
61 Properties of RegExp after <1234567890>.search(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
72 lastMatch: {1234567890}
78 ---------- [Cleared RegExp values] ----------
79 Properties of RegExp after <1234567890>.replace(/(1)(2)(3)(4)(5)(6)(7)(8)(9)(0)/):
90 lastMatch: {1234567890}