Actually, for JS engines this is a much smaller problem than for other parts of the web platform.  There are two nasty warts I&#x27;m aware of: the &quot;function inside if&quot; mess, and the fact that the spec says enumeration order is undefined but actual web pages depend on some things about enumeration order that all browsers implement; chances are this will make it into the spec at some point.  But by and large JS engines agree with each other and with the spec.  Much more so than, say, DOM or CSS implementations.