Update React Native Model

Summary:
Release Notes: None

Fix some model issues for Prepack.

Reviewed By: NTillmann

Differential Revision: D10205606

fbshipit-source-id: d99a10c3dc9d0c5fcf3650a359e6c17f01204bef
This commit is contained in:
Chris Blappert 2018-10-22 17:34:09 -07:00 committed by Facebook Github Bot
parent d6da6bf8ab
commit a78cf01589

View File

@ -121,14 +121,14 @@ export default function(realm: Realm): NativeFunctionValue {
});
// ECMA262 20.1.2.6
if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION) && !realm.isCompatibleWith("mobile"))
if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION))
func.defineNativeConstant("MAX_SAFE_INTEGER", new NumberValue(realm, 9007199254740991));
// ECMA262 20.1.2.7
func.defineNativeConstant("MAX_VALUE", new NumberValue(realm, 1.7976931348623157e308));
// ECMA262 20.1.2.8
if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION) && !realm.isCompatibleWith("mobile"))
if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION))
func.defineNativeConstant("MIN_SAFE_INTEGER", new NumberValue(realm, -9007199254740991));
// ECMA262 20.1.2.9