From 5f3d54775f3bd8efd377c9bc4cb2a5b3a8483144 Mon Sep 17 00:00:00 2001 From: Simon Jensen Date: Mon, 23 Jul 2018 15:15:03 -0700 Subject: [PATCH] Assume that Object.assign is present in the "mobile" environment. Summary: Pull Request resolved: https://github.com/facebook/prepack/pull/2313 Differential Revision: D8958641 Pulled By: simonhj fbshipit-source-id: d5ff109f5a68eda818770a56196091b162db8610 --- src/intrinsics/ecma262/Object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intrinsics/ecma262/Object.js b/src/intrinsics/ecma262/Object.js index 2185b8097..3039a1b23 100644 --- a/src/intrinsics/ecma262/Object.js +++ b/src/intrinsics/ecma262/Object.js @@ -234,7 +234,7 @@ export default function(realm: Realm): NativeFunctionValue { }); // ECMA262 19.1.2.1 - if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION) && !realm.isCompatibleWith("mobile")) { + if (!realm.isCompatibleWith(realm.MOBILE_JSC_VERSION)) { func.defineNativeMethod("assign", 2, (context, [target, ...sources]) => { // 1. Let to be ? ToObject(target). let to = To.ToObject(realm, target);