We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f609c commit 21ea90dCopy full SHA for 21ea90d
ports-js/scheme.js
@@ -1,6 +1,6 @@
1
import { parseWithoutExpand } from './parser.js';
2
3
-import { readFileSync } from 'fs';
+import { readFile, readFileSync } from 'fs';
4
import URL from 'url';
5
6
// Use JavaScript native Symbol instead of custom implementation
@@ -360,6 +360,8 @@ export function evalScheme(list) {
360
361
addGlobals(globalEnv);
362
363
+var stdlibConent = readFileSync('ports/stdlib.scm', 'utf8')
364
+evalSchemeString(stdlibConent);
365
366
function main() {
367
console.log(evalSchemeString("(+ (* 2 3) 2)")); // Should output 3
0 commit comments