diff --git a/crates/replay_gen/src/main.rs b/crates/replay_gen/src/main.rs index 177cf250..4b337687 100644 --- a/crates/replay_gen/src/main.rs +++ b/crates/replay_gen/src/main.rs @@ -1,7 +1,7 @@ use replay_gen::codegen::{generate_javascript, generate_standalone}; use replay_gen::irgen::IRGenerator; use replay_gen::opt::Optimiser; -use replay_gen::trace::{self, WasmEvent}; +use replay_gen::trace::WasmEvent; use replay_gen::trace_optimisation::{ShadowMemoryOptimiser, TraceOptimiser}; use std::fs::File; use std::io::{self, BufReader}; diff --git a/src/node-analyser.cts b/src/node-analyser.cts index a600605b..e0622de6 100644 --- a/src/node-analyser.cts +++ b/src/node-analyser.cts @@ -83,7 +83,7 @@ export default class Analyser implements AnalyserI { analysisScript = analysisScript.split('exports.Trace = Trace;').join('') analysisScript = analysisScript.split('exports.default = Analysis;').join('') analysisScript = `function setupAnalysis(Wasabi) {\n ${analysisScript};\n return new Analysis(Wasabi, { extended: ${this.options.extended}})}\n` - const setupScript = await fs.readFile('./src/runtime.js') + '\n' + const setupScript = await fs.readFile('./src/wasabi-runtime.js') + '\n' return wasabiScript + ';' + analysisScript + ';' + setupScript + ';' }