-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into muneeb/code-owners-file
- Loading branch information
Showing
14 changed files
with
350 additions
and
25 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
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,4 +1,4 @@ | ||
MODDABLE_URL=https://github.com/agoric-labs/moddable.git | ||
MODDABLE_COMMIT_HASH=f6c5951fc055e4ca592b9166b9ae3cbb9cca6bf0 | ||
XSNAP_NATIVE_URL=https://github.com/agoric-labs/xsnap-pub | ||
XSNAP_NATIVE_COMMIT_HASH=eef9b67da5517ed18ff9e0073b842db20924eae3 | ||
XSNAP_NATIVE_COMMIT_HASH=105bc6862050695b1723fa76df91564fe8111a37 |
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
24 changes: 24 additions & 0 deletions
24
packages/xsnap/test/fixture-xsnap-kill-parent-in-handlecommand.js
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import console from 'console'; | ||
import * as proc from 'child_process'; | ||
import * as os from 'os'; | ||
import fs from 'fs'; | ||
import process from 'node:process'; | ||
import { tmpName } from 'tmp'; | ||
import '@endo/init'; | ||
import { xsnap } from '../src/xsnap.js'; | ||
import { options } from './message-tools.js'; | ||
|
||
const io = { spawn: proc.spawn, os: os.type(), fs, tmpName }; | ||
|
||
async function handleCommand(_message) { | ||
process.kill(process.pid, 'SIGKILL'); | ||
return new Uint8Array(); | ||
} | ||
|
||
const vat = await xsnap({ ...options(io), handleCommand }); | ||
await vat.evaluate( | ||
'function handleCommand(message) { issueCommand(new Uint8Array().buffer); };', | ||
); | ||
await vat.issueStringCommand('0'); | ||
console.error('Error: parent was not killed!'); | ||
await vat.close(); |
Oops, something went wrong.