Closed zealot09 closed 1 year ago
I can run @lezer/highlight without trouble in Chrome 108. Can you be a bit more specific about how to trigger the problem?
I can run @lezer/highlight without trouble in Chrome 108. Can you be a bit more specific about how to trigger the problem?
Did u try @lezer/highlight/dist/index.js ? I finally found it's my esbuild config packing with the dist/index.js file occured this problem, I just solve this by modify my esbuild config while requiring dist/index.cjs。
But I think problem still exists
I can't see this happening except if Tag.define
is called with an argument that's not a Tag
, and the code in the package definitely doesn't do this. Going to close this until I have a working way to reproduce it.
macOS chrome 108.0.5359.98
maybe chrome upgrades and has special optimize for circular reference,below tag define will push itself into tag.set makes circular reference。
while debugging in chrome,strange things happened
then next line, init name with Tag.define, it turns out with Object[object] , not an instance of Tag
and go on, jserror