We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Hermes we never reach (in whitelistIntrinsics)
endo/packages/ses/src/permits-intrinsics.js
Lines 303 to 304 in b3a31b1
but reach here first instead
endo/packages/ses/src/intrinsics.js
Lines 87 to 103 in b3a31b1
order of events and conditions
isObject(intrinsic)
objectHasOwnProperty(intrinsic, 'prototype')
typeof permit === 'object'
!permit.prototype
throw TypeError(`${name}.prototype property not whitelisted`);
prop in obj
typeof obj === 'function' && prop === 'prototype'
obj.prototype = undefined
yarn build:hermes && yarn test:hermes
The prototype to be set to undefined earlier so we continue which skips throwing the TypeError
undefined
continue
Note: on Static Hermes this is a non-issue, since both prototype bugs are fixed
The text was updated successfully, but these errors were encountered:
fix(ses): fix #2598 with cauterizeProperty reuse
578772d
fd0660f
f57790e
2cbbe5f
6aa1605
d13bf9c
erights
Successfully merging a pull request may close this issue.
Describe the bug
On Hermes we never reach (in whitelistIntrinsics)
endo/packages/ses/src/permits-intrinsics.js
Lines 303 to 304 in b3a31b1
but reach here first instead
endo/packages/ses/src/intrinsics.js
Lines 87 to 103 in b3a31b1
order of events and conditions
isObject(intrinsic)
objectHasOwnProperty(intrinsic, 'prototype')
typeof permit === 'object'
!permit.prototype
throw TypeError(`${name}.prototype property not whitelisted`);
prop in obj
typeof obj === 'function' && prop === 'prototype'
obj.prototype = undefined
(not reached)Steps to reproduce
yarn build:hermes && yarn test:hermes
Expected behavior
The prototype to be set to
undefined
earlierso we
continue
which skips throwing the TypeErrorPlatform environment
Additional context
Note: on Static Hermes this is a non-issue, since both prototype bugs are fixed
Screenshots
The text was updated successfully, but these errors were encountered: