From c08b15b09f295775c3f253ca7f03c105ac87bab7 Mon Sep 17 00:00:00 2001 From: LeoTM <1881059+leotm@users.noreply.github.com> Date: Wed, 15 Mar 2023 18:42:56 +0000 Subject: [PATCH] fix(ses): Add length (number) prop to whitelist %AsyncGenerator% and %AsyncFunctionPrototype% (#1511) --- packages/ses/src/whitelist.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ses/src/whitelist.js b/packages/ses/src/whitelist.js index 840ad7075c..f8958e9969 100644 --- a/packages/ses/src/whitelist.js +++ b/packages/ses/src/whitelist.js @@ -1221,6 +1221,10 @@ export const whitelist = { '[[Proto]]': '%FunctionPrototype%', constructor: '%InertAsyncGeneratorFunction%', prototype: '%AsyncGeneratorPrototype%', + // length prop added here for React Native jsc-android + // /~https://github.com/endojs/endo/issues/660 + // /~https://github.com/react-native-community/jsc-android-buildscripts/issues/181 + length: 'number', '@@toStringTag': 'string', }, @@ -1303,6 +1307,10 @@ export const whitelist = { // Properties of the AsyncFunction Prototype Object '[[Proto]]': '%FunctionPrototype%', constructor: '%InertAsyncFunction%', + // length prop added here for React Native jsc-android + // /~https://github.com/endojs/endo/issues/660 + // /~https://github.com/react-native-community/jsc-android-buildscripts/issues/181 + length: 'number', '@@toStringTag': 'string', },