ownwell / google-styleguide

Automatically exported from code.google.com/p/google-styleguide
84 stars 192 forks source link

Removed incorrect statement at /trunk/javascriptguide.xml#Semicolons #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Removed "unless resultOfOperation() is NaN". By the Abstract Equality 
Comparison Algorithm (ECMA-262, section 11.9.3, 1.c.i), the assertion "NaN == 
resultOfOperation()" is *always* false, even if resultOfOperation is NaN.

Quick link to the relevant section of the ECMAScript 5.1 specification: 
http://es5.github.com/#x11.9.3

Original issue reported on code.google.com by robwu...@gmail.com on 27 Jul 2012 at 1:04

Attachments: