News for hackers. Stuff that matters.
Re:Wat [video] (2012) by crdrost on Wednesday March 29, 2023 @08:11PM (#35365848)
None of the behaviors mentioned in the video have changed; they are all pinned down by ECMAScript standards and to change them would be a breaking change to the internet.

The behavior of your console might be slightly different from the behavior of his console, but there are still many reasonable ways to replicate his results. See my comment below if you're still unsure about this point.

Re:Wat [video] (2012) by threatofrain on Wednesday March 29, 2023 @08:38PM (#35366097)
I'm getting different results in Node, Deno, Chrome, Safari. If we're talking about behaviors then things are different today.
Re:Wat [video] (2012) by vasergen on Wednesday March 29, 2023 @08:18PM (#35365918)
> but there are still many reasonable ways to replicate his results

But can you replicate his results for js in any modern browser or node environment? I agree that standards are fixed, but there is definitely a difference between implementation of those standards in different environments

Re:Wat [video] (2012) by crdrost on Wednesday March 29, 2023 @08:33PM (#35366065)
Yes. It is very easy to replicate his results for JS in every modern browser and Node.js environment, because these results are part of the ECMAScript standard and can never ever ever ever be changed. Again, if you are unsure about this point, please read the other comments I have left in these conversational threads.

(Just to be clear, I'm not saying any of this to jump on a bashing-JS train. Think of e.g. the abiding love of having been married for 20+ years, it's not like your spouse has no sandpapery parts or faults, we can healthily admit them to each other at this point -- I just have learned not to rub against them.)