1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix: only use maglev in DENO_FUTURE for now (#24485)

let it bake for a bit before enabling by default

Signed-off-by: snek <snek@deno.com>
This commit is contained in:
snek 2024-07-09 10:26:45 -07:00 committed by GitHub
parent c461f8fd2e
commit 158b4a4e02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -384,10 +384,14 @@ fn resolve_flags_and_init(
// TODO(petamoriken): Need to check TypeScript `assert` keywords in deno_ast
vec!["--no-harmony-import-assertions".to_string()]
} else {
vec![
// If we're still in v1.X version we want to support import assertions.
// V8 12.6 unshipped the support by default, so force it by passing a
// flag.
vec!["--harmony-import-assertions".to_string()]
"--harmony-import-assertions".to_string(),
// Verify with DENO_FUTURE for now.
"--no-maglev".to_string(),
]
}
}
};