Skip to content
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

Fixes to endowment safety example #102

Merged
merged 2 commits into from
Apr 2, 2019
Merged

Conversation

mappum
Copy link
Contributor

@mappum mappum commented Apr 1, 2019

Tried evaluating the example in the docs and found it was missing a few calls, and replacing the toString of Function.prototype rather than Object.prototype.

Tried evaluating the example in the docs and found it was missing a few calls, and replacing the `toString` of `Function.prototype` rather than `Object.prototype`.
docs/api.md Outdated
@@ -76,7 +76,7 @@ function makeConsole() {
}

const newConsole = s.evaluate(`(${makeConsole})`, {consoleEndowment: console});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Do we want to do const newConsole = s.evaluate((${makeConsole}()), {consoleEndowment: console}); instead of calling newConsole?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, your way is a little more clear. I'll update the PR 👍

@katelynsills katelynsills merged commit 18b937d into Agoric:master Apr 2, 2019
warner added a commit that referenced this pull request Apr 6, 2019
* whitelist Symbol.matchAll, to fix Chrome-v73 (Issue #90)
* change primary export #88
* improve documentation #66 #67
* add integration tests #85
* packaging: remove ses-shim.js, add other generated bundles
* update Realms shim to commit 0c00eb, to fix Browserify #79
* test against node v10/v11, switch from travis to circleci #73
* fix examples #102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants