blob: ad282eb4612f0d6ca9949e5e62801a23c3a324c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
var BUGNUMBER = 369778;
var summary =
"RegExpStatics::makeMatch should make an undefined value when the last " +
"match had an undefined capture.";
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
var expected = undefined;
var actual;
'x'.replace(/x(.)?/g, function(m, group) { actual = group; })
print("expected: " + expected)
print("actual: " + actual)
assertEq(expected, actual)
/******************************************************************************/
if (typeof reportCompare === "function")
reportCompare(true, true);
|