Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.46 KB

ISSUE_TEMPLATE.md

File metadata and controls

39 lines (31 loc) · 1.46 KB

Is Your Question Already Answered?

Personal Diagnostics

Please answer the following questions:

JavaScript includes a setTimeout function:

  • Yes
  • No

Functions are a type of primitive value in JavaScript:

  • Yes
  • No

Objects can be shared between isolates:

  • Yes
  • No

The Code

  • This code will parse and evaluate if I put it into a file called main.mjs and then run node main.mjs.
// Replace this code with the code which demonstrates what you are asking about
import ivm from "isolated-vm";
const isolate = new ivm.Isolate();
const context = await isolate.createContext();
console.log(await context.eval('"hello world"'));