blob: ad282eb4612f0d6ca9949e5e62801a23c3a324c0 [file] [log] [blame]
/* 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);