Closed hildjj closed 3 weeks ago
Puppeteer tests are broken again. I'm going to take a few minutes to switch to playwright, and get the web tests running headless, cross-browser, and in CI.
I did not test changes by myself, but they seems correct, so rely on CI.
Fixes #520.
The
Intern
class uses an internal object to track whether a particular string has been seen before. It checks this withlet num = this.offsets[s];
. If one of the 8 base properties ofObject
is used as the literal name,num
gets a non-numeric result.The quick fix is to initialize
offsets
with an object that has no prototype instead of{}
.