Replies: 2 comments 2 replies
-
Yeah the SES shim currently relies on a fully defined There are 2 ways the SES shim interacts with the console today:
While we have plans to eject the console "taming" into a trusted shim with SES just leaving a power in the start compartment to reveal error information, we should also fix the reliance of the SES shim onto the console for diagnostics, and instead make a best effort, possibly falling back to other known print mechanisms. In the meantime you might be interested in https://github.com/Agoric/agoric-sdk/blob/master/packages/xsnap-lockdown/lib/console-shim.js which we use on XS that similarly lacks a proper console. I'm also wondering how @kriskowal is addressing this in his more direct support of XS in #2471. |
Beta Was this translation helpful? Give feedback.
-
We recently changed our internal usage of |
Beta Was this translation helpful? Give feedback.
-
For example .groupEnd or .error
Some environments don't have all those methods, for example QuickJS-NG, which only has .log
Is SES supported only on environments that have a full console.log impl. or does SES incorrectly depend on certain methods being available on console?
Beta Was this translation helpful? Give feedback.
All reactions