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
Some console method while coding in SDK are not available in swingset vats. The error (e.g. for console.trace) is cryptic because it doesn't mention console.trace or even console, just the outer method.
Tests of these that run in Node will work, but then fail in XS tests which are harder to debug.
Acceptance criteria
the console type while coding in agoric-sdk matches the available console object during code execution
Description of the Design
That could be by making Swingset's console support the console API or by modifying the typedef for the global console. I'd prefer to support the API as much as possible (if even with throwing "not implemented") than to create more special cases.
Security Considerations
The current approach puts console management in SDK when it would be safer to have lower in the environment.
Test Plan
TBD
The text was updated successfully, but these errors were encountered:
What is the Problem Being Solved?
Some
console
method while coding in SDK are not available in swingset vats. The error (e.g. forconsole.trace
) is cryptic because it doesn't mentionconsole.trace
or evenconsole
, just the outer method.Tests of these that run in Node will work, but then fail in XS tests which are harder to debug.
Acceptance criteria
the console type while coding in agoric-sdk matches the available console object during code execution
Description of the Design
That could be by making Swingset's console support the console API or by modifying the typedef for the global console. I'd prefer to support the API as much as possible (if even with throwing "not implemented") than to create more special cases.
Security Considerations
The current approach puts console management in SDK when it would be safer to have lower in the environment.
Test Plan
TBD
The text was updated successfully, but these errors were encountered: