BrowserWorks / Waterfox-Classic

The Waterfox Classic repository, for legacy systems and customisation.
https://classic.waterfox.net
Mozilla Public License 2.0
175 stars 34 forks source link

Fix JS debug asserts on startup #105

Closed buttercookie42 closed 2 years ago

buttercookie42 commented 2 years ago

If I try to run Waterfox with --enable-debug enabled, I'm immediately hitting some assertions in JS code. These two commits fix them, allowing Waterfox to successfully start up at least. (Eventually you might hit other assertions, e.g. I'm hitting one in NSS code on shutdown, and another somewhere when trying to open the devtools, but at least things are no longer completely broken.)

I've manually tested the trimLeft()/trimRight() aliases and they seem to continue working even with this new implementation.