We've received a report in https://github.com/webcompat/web-bugs/issues/132940 where the sites fails to load with an error: `Error while processing route: protected.index can't convert symbol to number` The error appears to be happening in this function (in the `for (const r in e) t[`${ i }.${ r }`] = e[r]` loop): ```js K = Object.prototype.hasOwnProperty; function W(e) { const t = new G; for (const i in e) { if (!K.call(e, i)) continue; const r = e[i]; if ('object' == typeof r && r) { const e = W(r); for (const r in e) t[`${ i }.${ r }`] = e[r] } else t[i] = r } return t } ``` (though when I try to log the values inside Object t, it doesn't error out anymore :/) From mozregression: ``` 25:43.58 INFO: No more integration revisions, bisection finished. 25:43.58 INFO: Last good revision: 888623deeb3d6817ff7aece0e8898f9624873dac 25:43.58 INFO: First bad revision: 7ad5c59c746bbde34ba4a1bb08ba6aa1c65dbacd 25:43.58 INFO: Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=888623deeb3d6817ff7aece0e8898f9624873dac&tochange=7ad5c59c746bbde34ba4a1bb08ba6aa1c65dbacd ```
Bug 1878353 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
We've received a report in https://github.com/webcompat/web-bugs/issues/132940 where the sites fails to load with an error: `Error while processing route: protected.index can't convert symbol to number` The error appears to be happening in this function (in the `for (const r in e) t[`${ i }.${ r }`] = e[r]` loop): ```js K = Object.prototype.hasOwnProperty; function W(e) { const t = new G; for (const i in e) { if (!K.call(e, i)) continue; const r = e[i]; if ('object' == typeof r && r) { const e = W(r); for (const r in e) t[`${ i }.${ r }`] = e[r] } else t[i] = r } return t } ``` (though when I try to log the values inside the object `t`, it doesn't error out anymore :/) From mozregression: ``` 25:43.58 INFO: No more integration revisions, bisection finished. 25:43.58 INFO: Last good revision: 888623deeb3d6817ff7aece0e8898f9624873dac 25:43.58 INFO: First bad revision: 7ad5c59c746bbde34ba4a1bb08ba6aa1c65dbacd 25:43.58 INFO: Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=888623deeb3d6817ff7aece0e8898f9624873dac&tochange=7ad5c59c746bbde34ba4a1bb08ba6aa1c65dbacd ```