mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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…
x
Reference in New Issue
Block a user