Skip to content

Commit

Permalink
Add length (number) prop to whitelist %AsyncGenerator% and %AsyncFunc…
Browse files Browse the repository at this point in the history
…tionPrototype%
  • Loading branch information
leotm committed Mar 15, 2023
1 parent b1bba75 commit acaf5e9
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 acaf5e9

Please sign in to comment.