mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Fixing eslint-comments warnings
Reviewed By: yungsters Differential Revision: D6678252 fbshipit-source-id: ee93b7ee52520b750ca11fcc625cccf3cd82d075
This commit is contained in:
committed by
Facebook Github Bot
parent
a1a0a69546
commit
11a495cb32
@@ -11,8 +11,6 @@
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
/* eslint-disable strict */
|
||||
|
||||
if (Number.EPSILON === undefined) {
|
||||
Object.defineProperty(Number, 'EPSILON', {
|
||||
value: Math.pow(2, -52),
|
||||
@@ -29,7 +27,6 @@ if (Number.MIN_SAFE_INTEGER === undefined) {
|
||||
});
|
||||
}
|
||||
if (!Number.isNaN) {
|
||||
// eslint-disable-next-line max-len
|
||||
// https://github.com/dherman/tc39-codex-wiki/blob/master/data/es6/number/index.md#polyfill-for-numberisnan
|
||||
const globalIsNaN = global.isNaN;
|
||||
Object.defineProperty(Number, 'isNaN', {
|
||||
|
||||
Reference in New Issue
Block a user