pipa-js 0.1.1

A fast, minimal ES2023 JavaScript runtime built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Test script for Pipa eval binary
console.log("Hello from Pipa!");

let x = 42;
console.log("x =", x);

// Test BigInt
let big = 123456789012345678901234567890n;
console.log("BigInt:", big);

// Test setTimeout (will print after 100ms)
console.log("Starting timer...");
setTimeout(function() {
    console.log("Timer callback fired!");
}, 100);

console.log("Script loaded, waiting for timers...");