Determine by the existing code. I need it for the Google Closure Compiler, where you can specify the version of ECMAscript.

  • In general, no way: for example, function(){...} can be used in all versions - Grundy
  • @Grundy Are you talking about functions in a block or something? Type no new operators are not used, and they say the result is different. Well, yes, I also think that it is not defined. Only if you learn all the new features of ES6 and understand yourself - do you use them at home or not. - user208916
  • No, I'm talking about the definition of a function. This definition is the same in all versions. Therefore, it will not be possible to specify a specific version. - Grundy
  • @Grundy Do not quite understand what you mean. I use the Google Closure Compiler (code compressor) and so that it correctly compresses the code, you can transfer the version of ECMAscript with a special flag, ECMAscript6 is by default, which probably is not quite true if I do not use it. - user208916
  • And what you do not like the default? - Grundy

0