Fix error filtering region math

This commit is contained in:
Richard Feldman 2022-11-01 01:17:16 -04:00
parent 167e8a40de
commit 560c984d30
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
5 changed files with 53 additions and 69 deletions

View file

@ -177,11 +177,10 @@ pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
let target_info = TargetInfo::default_wasm32();
// TODO use this to filter out problems and warnings in wrapped defs.
// See the variable by the same name in the CLI REPL for how to do this!
let filter_problems_before_offset = 0;
let mono = match compile_to_mono(
arena,
std::iter::empty(),
&src,
filter_problems_before_offset,
target_info,
DEFAULT_PALETTE_HTML,
) {