javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
try {
  // Probe syntax + call-shape only; do not await module resolution.
  // Runner checks stdout synchronously, so emit immediately when supported.
  var p = eval('import("./import-attributes-target.js", { with: { type: "json" } })');
  if (p && typeof p.then === "function") {
    console.log("OK");
  }
} catch (e) {
  // unsupported
}