structscript 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/structscript.js +2 -2
- package/lib/editor.html +3276 -0
- package/lib/interpreter.js +371 -21
- package/lib/main.js +261 -0
- package/lib/preload.js +21 -0
- package/package.json +7 -5
package/bin/structscript.js
CHANGED
|
@@ -115,7 +115,7 @@ function runFile(filePath) {
|
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
try {
|
|
118
|
-
interp.run(source);
|
|
118
|
+
interp.run(source, resolved);
|
|
119
119
|
if (showTime) {
|
|
120
120
|
const elapsed = Date.now() - t0;
|
|
121
121
|
console.error(t(C.grey, `\n⏱ ${elapsed}ms`));
|
|
@@ -257,4 +257,4 @@ function executeREPL(interp, code) {
|
|
|
257
257
|
console.error(t(C.grey, ` → ${e.snippet.trim()}`));
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
}
|
|
260
|
+
}
|