Add null named capture coercion test case

This commit is contained in:
Alexey Shvayka 2020-04-02 14:57:46 +03:00 committed by Rick Waldron
parent 6de6484e21
commit 7a4b88e446

View File

@ -58,6 +58,7 @@ var coercibleValue = {
throw new Test262Error('This method should not be invoked.'); throw new Test262Error('This method should not be invoked.');
}, },
}, },
bar: null,
}, },
}; };
@ -66,3 +67,4 @@ r.exec = function() {
}; };
assert.sameValue(r[Symbol.replace]('ab', '[$<foo>]'), '[toString value]b'); assert.sameValue(r[Symbol.replace]('ab', '[$<foo>]'), '[toString value]b');
assert.sameValue(r[Symbol.replace]('ab', '[$<bar>]'), '[null]b');