Skip to content

Commit

Permalink
fix(ses): Add length (number) prop to whitelist %AsyncGenerator% and …
Browse files Browse the repository at this point in the history
…%AsyncFunctionPrototype% (#1511)
  • Loading branch information
leotm authored Mar 15, 2023
1 parent b1bba75 commit c08b15b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ses/src/whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},

Expand Down Expand Up @@ -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',
},

Expand Down

0 comments on commit c08b15b

Please sign in to comment.