-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
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
Annoying display of Object <[Object: null prototype] {}>
#477
Comments
The alternative you show is an inheritance cycle, where Other than the |
Here is the behaviour that annoys me: import 'ses';
console.log({});
lockdown();
console.log({}); I get the following: node -r esm foo.js
{}
Object <[Object: null prototype] {}> {} |
I agree that is a problem. I've noticed that too. We need to diagnose what's causing it. I think the explanation lies elsewhere, but I do not understand it and have not experimented. |
Object <[Object: null prototype] {}>
This is waiting for us to find and fix where something in agoric-sdk associated with xsnap is overriding a constructor property by assignment. Only when that's fixed can we stop tuning |
@erights, @kriskowal:
Is there any particular reason why https://github.com/Agoric/SES-shim/blob/54e0b0c910fd19bec14f9e3ff9e556f17f952fd4/packages/ses/src/whitelist.js#L504 effectively forces
Object.prototype.__proto__ = null
?This just makes printing of objects under SES extremely annoying (displays
Object <[Object: null prototype] {}> { ... }
under Node.js instead of just{ ... }
).Shouldn't we instead have?
The text was updated successfully, but these errors were encountered: