QueryString: use null prototypes for parsed arguments
Previously, querystring.parse() and r.args consulted inherited
properties when collecting duplicate parameters. Keys such as
"toString" included inherited functions in their values, and
"__proto__" replaced the prototype of the result with an array.
Now both engines create results with a null prototype, matching
Node.js and treating all parsed names as data. Object.prototype
methods, including hasOwnProperty(), are no longer inherited.
The njs regression was introduced in
8b9b297d (0.8.0). The QuickJS
r.args implementation introduced the same issue in
201b1276
(0.8.6), followed by querystring.parse() in
f289dcb9 (0.8.10).
The issue was found by Basavaraj S m (basavaraj-sm05) in PR #1147:
https://github.com/nginx/njs/pull/1147