mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 22:41:28 +08:00
Move Number polyfills into the /polyfills/ directory
Reviewed By: vjeux Differential Revision: D3223317 fb-gh-sync-id: a49a14f217b27d6542b65c4780c557e73da2443f fbshipit-source-id: a49a14f217b27d6542b65c4780c557e73da2443f
This commit is contained in:
committed by
Facebook Github Bot 6
parent
2eef115161
commit
dad39eb502
@@ -184,12 +184,6 @@ function setUpProcessEnv() {
|
||||
}
|
||||
}
|
||||
|
||||
function setUpNumber() {
|
||||
polyfillIfNeeded('EPSILON', Math.pow(2, -52), Number);
|
||||
polyfillIfNeeded('MAX_SAFE_INTEGER', Math.pow(2, 53) - 1, Number);
|
||||
polyfillIfNeeded('MIN_SAFE_INTEGER', -(Math.pow(2, 53) - 1), Number);
|
||||
}
|
||||
|
||||
function setUpDevTools() {
|
||||
// not when debugging in chrome
|
||||
if (__DEV__) { // TODO(9123099) Strip `__DEV__ &&`
|
||||
@@ -212,7 +206,6 @@ setUpMapAndSet();
|
||||
setUpProduct();
|
||||
setUpWebSockets();
|
||||
setUpProfile();
|
||||
setUpNumber();
|
||||
setUpDevTools();
|
||||
|
||||
// Just to make sure the JS gets packaged up. Wait until the JS environment has
|
||||
|
||||
Reference in New Issue
Block a user