isolated-vm
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -14,3 +14,7 @@ 'use strict'; | ||
let context = await isolate.createContext({ inspector: true }); | ||
let script = await isolate.compileScript('for(;;)debugger;', { filename: 'example.js' }); | ||
const inspector = isolate.createInspectorSession(); | ||
inspector.dispatchProtocolMessage('{"id":1,"method":"Debugger.enable"}'); | ||
await context.eval('/* break on script start */debugger;'); | ||
inspector.dispose(); | ||
let script = await isolate.compileScript('console.log("hello world")', { filename: 'example.js' }); | ||
await script.run(context); | ||
@@ -35,2 +39,3 @@ }()).catch(console.error); | ||
ws.on('message', function(message) { | ||
console.log('<', message.toString()) | ||
try { | ||
@@ -46,2 +51,3 @@ channel.dispatchProtocolMessage(String(message)); | ||
function send(message) { | ||
console.log('>', message.toString()) | ||
try { | ||
@@ -48,0 +54,0 @@ ws.send(message); |
{ | ||
"name": "isolated-vm", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Access to multiple isolates", | ||
@@ -13,4 +13,2 @@ "main": "isolated-vm.js", | ||
"rebuild": "node-gyp rebuild --release -j max", | ||
"prebuild": "prebuild", | ||
"upload": "prebuild --upload ${GITHUB_TOKEN}", | ||
"lint": "find src -name '*.cc' | xargs -n1 clang-tidy", | ||
@@ -17,0 +15,0 @@ "test": "node test.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
506042
810