dust3d/thirdparty/quickjs/quickjs-2019-07-09-dust3d/examples/c_module.js

7 lines
144 B
JavaScript

/* example of JS module importing a C module */
import { fib } from "./fib.so";
console.log("Hello World");
console.log("fib(10)=", fib(10));