News for hackers. Stuff that matters.
Re:XYPlorer Is Written in VB6 by AlienRobot on Saturday January 11, 2025 @12:20PM (#42667304)
>In sloppy mode, a number beginning with a 0, such as 0644, is interpreted as an octal number (0644 === 420)

How does something like this even happens.

Anyway, if you "use" strict mode, but the browser doesn't support it, you're effectively not running in strict mode, so you can't actually assume the Javascript will execute differently.

Re:XYPlorer Is Written in VB6 by bakkoting on Saturday January 11, 2025 @03:43PM (#42668779)
Every version of a browser released after 2011 has supported strict mode.
Re:XYPlorer Is Written in VB6 by IshKebab on Saturday January 11, 2025 @05:46PM (#42669566)
Any code that works in strict mode will also work in sloppy mode.

0777 style octal numbers are a footguns inherited from C. Don't ask my why they made that mistake! Modern languages use 0o777.