1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 15:35:08 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/RegExp
Idan Horowitz 6cd318d784 LibJS: Convert matched regex result to string in Symbol.replace
This would crash on an undefined match (no match), since the matched
result was assumed to be a string (such as on discord.com). The spec
suggests converting it to a string as well:
https://tc39.es/ecma262/#sec-regexp.prototype-@@replace (14#c)
2021-04-17 16:10:45 +02:00
..
RegExp.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.exec.js LibJS: Convert matched regex result to string in Symbol.replace 2021-04-17 16:10:45 +02:00
RegExp.prototype.flags.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.source.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.test.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.toString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00