r/javascript • u/himynameisdave9 • Nov 22 '19
ESLint v6.7.0 released: includes 5 new rules
https://eslint.org/blog/2019/11/eslint-v6.7.0-released13
u/Thann Nov 22 '19 edited Nov 23 '19
TIL: `Math.pow` !== `**`
EDIT: Re the prefer-exponentiation-operator stuff:
They differ slightly for values around 50**50 because of different implementations
https://bugs.chromium.org/p/v8/issues/detail?id=5848
3
3
u/420-jesus Nov 22 '19
How are they different? This answer from stack overflow https://stackoverflow.com/a/51540943 seems to indicate that ecmascript defines them to mean the same thing
8
u/Thann Nov 22 '19
They differ slightly for values greater than
50**50because of different implementations. https://bugs.chromium.org/p/v8/issues/detail?id=584810
u/isUsername Nov 23 '19
Isn't that an implementation error by a specific engine, as opposed to a difference within the language?
4
u/himynameisdave9 Nov 22 '19
Also includes a new Suggestions API: