mirror of https://github.com/tc39/test262.git
Add `null` named capture coercion test case
This commit is contained in:
parent
6de6484e21
commit
7a4b88e446
|
@ -58,6 +58,7 @@ var coercibleValue = {
|
|||
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', '[$<bar>]'), '[null]b');
|
||||
|
|
Loading…
Reference in New Issue