-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spawner): add enough Far/Data to pass tests
I'm pretty sure this is incomplete: coveredCall.js and escrow.js lack Far() calls around clearly pass-by-reference objects. It's not obvious how to add them, because the functions therein are turned into source strings with plain toString (backticks), so any reference to Far will result in an undefined-global TypeError when the string is evaluated. To include Far properly, these need to be sent through bundleSource() instead of a simple toString. But this doesn't seem to cause the unit tests to break, probably because 10 of the 14 tests are marked as test.skip. I'm going to PR this anyways, because I think spawner is vestigal and is likely to be deleted entirely before those tests are ever re-enabled. refs #2018
- Loading branch information
Showing
8 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// Copyright (C) 2018 Agoric, under Apache License 2.0 | ||
|
||
import { Far } from '@agoric/marshal'; | ||
import { makeContractHost } from '../../../src/contractHost'; | ||
|
||
export function buildRootObject(vatPowers) { | ||
return harden({ | ||
return Far('root', { | ||
makeHost() { | ||
return harden(makeContractHost(vatPowers)); | ||
return makeContractHost(vatPowers); | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// Copyright (C) 2019 Agoric, under Apache License 2.0 | ||
|
||
import { Far } from '@agoric/marshal'; | ||
import { makeIssuerKit } from '@agoric/ertp'; | ||
|
||
export function buildRootObject(_vatPowers) { | ||
return harden({ makeIssuerKit }); | ||
return Far('root', { makeIssuerKit }); | ||
} |