Skip to content

Commit

Permalink
Fix website
Browse files Browse the repository at this point in the history
The arc-script online REPL currently fails to compile with the error:

    Exported global cannot be mutable

It is a known error:

    rustwasm/wasm-pack#886

This commit is a fix for the error + a small cleanup of unused code.
  • Loading branch information
segeljakt committed Aug 4, 2020
1 parent bb5e1cd commit c9a5530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arc-script/wasm/Cargo.toml
Expand Up @@ -21,3 +21,6 @@ wasm-bindgen-test = "0.2"

[profile.release]
opt-level = "s"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
1 change: 0 additions & 1 deletion arc-script/wasm/src/lib.rs
@@ -1,6 +1,5 @@
mod utils;

use arc_script::pretty::Pretty;
use arc_script::opt::*;
use wasm_bindgen::prelude::*;

Expand Down

0 comments on commit c9a5530

Please sign in to comment.