Hacker News new | ask | show | jobs
by crdrost 1174 days ago
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.

2 comments

> 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

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.)

I'm getting inconsistent results in Node (19.8), Deno (v8 11.2), Chrome (112), Safari (16.4).