Skip to content

Commit

Permalink
added debug logger & eslint, addressed lint errors and type warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Oct 4, 2023
1 parent 11fb82e commit 8fe37e8
Show file tree
Hide file tree
Showing 12 changed files with 1,467 additions and 179 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-this-alias": "off",
},
};
7 changes: 6 additions & 1 deletion examples/rustc.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@
<body>
<div id="terminal"></div>
<div id="downloads"></div>
<p id="note">
Note: the panic at the end is expected. This demo highlights how far `rustc` can get on this polyfill before failing due to other reasons.
</p>
<script type="module">
import { Fd } from "../dist/fd.js";
import { File, Directory } from "../dist/fs_core.js";
import { PreopenDirectory } from "../dist/fs_fd.js";
import WASI from "../dist/wasi.js";
import { WASI, debug } from "../dist/index.js";
import { strace } from "../dist/strace.js"

debug.enable();

var term = new Terminal({
convertEol: true,
});
Expand Down
Loading

0 comments on commit 8fe37e8

Please sign in to comment.