From 031bed47e1d3daec6769c5f73ec5e8989858f946 Mon Sep 17 00:00:00 2001 From: LeoTM <1881059+leotm@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:44:48 +0000 Subject: [PATCH] refactor(ses): document removeUnpermittedIntrinsics now fixed in Static Hermes Ref https://github.com/facebook/hermes/issues/1582 Ref https://github.com/facebook/hermes/commit/bb90b33ac0bc22cdd35eae593de96faa6376437a --- packages/ses/src/permits.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ses/src/permits.js b/packages/ses/src/permits.js index 13432ad689..0fc5616f8f 100644 --- a/packages/ses/src/permits.js +++ b/packages/ses/src/permits.js @@ -310,6 +310,7 @@ arrayForEach(getOwnPropertyNames(strict), prop => { } catch (e) { // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js if (e.message === 'Restricted in strict mode') { + // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582 FunctionInstance[prop] = accessor; } }