Params object has no prototype
lesjames opened this issue · comments
Les James commented
I ran into an issue with the params object being returned from match. I do an equality check on the params object and it was causing an error because the params object is being created without a prototype.
Line 399 in b39edd4
See some common issues when an object is created with no prototype.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create#custom_and_null_objects
Douglas Wilson commented
This is to help mitigate the risks of prototype pollution.
Les James commented
Ah, good to know. Thank you.