You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SES has double init checks to produce clear errors when trying to lockdown the environment twice. However it seems that when async_hooks taming is involved through @endo/init, the error becomes a lot more obscure.
SES_UNCAUGHT_EXCEPTION: (TypeError#1)
TypeError#1: Cannot redefine property: Symbol(async_id_symbol)
at InertConstructor.defineProperty (<anonymous>)
at setup (file:///home/node/workspace/agoric/tmp/repro-endo-double-init/node_modules/@endo/init/src/node-async_hooks.js:216:10)
at file:///home/node/workspace/agoric/tmp/repro-endo-double-init/node_modules/@endo/init/src/node-async_hooks-patch.js:4:1
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:106:12)
Additionally the InertConstructor.defineProperty is confusing, but orthogonal.
The text was updated successfully, but these errors were encountered:
Describe the bug
SES has double init checks to produce clear errors when trying to lockdown the environment twice. However it seems that when async_hooks taming is involved through
@endo/init
, the error becomes a lot more obscure.Steps to reproduce
package.json
:foo.js
:Expected behavior
SES_ALREADY_LOCKED_DOWN
errorPlatform environment
@endo/init: 1.1.7
Additional context
Originally discovered by running
yarn test:fast-usdc
in https://github.com/Agoric/agoric-sdk/tree/bce5b917edace606af3cd468927b51f97fea5a51/multichain-testingScreenshots
Additionally the
InertConstructor.defineProperty
is confusing, but orthogonal.The text was updated successfully, but these errors were encountered: