mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-10-05 19:07:43 +03:00
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:
parent
d6da6bf8ab
commit
a78cf01589
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user