Skip to content

Commit

Permalink
fix(core): correct flags and feature name (denoland#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac authored Mar 13, 2024
1 parent c14ade3 commit c11bc3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ v8_use_custom_libcxx = ["v8/use_custom_libcxx"]
include_js_files_for_snapshotting = []
unsafe_runtime_options = []
unsafe_use_unprotected_platform = []
lazy_eval_snapshot = []
snapshot_flags_eager_parse = []

[dependencies]
anyhow.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions core/runtime/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fn v8_init(
);
let snapshot_flags = "--predictable --random-seed=42";
let expose_natives_flags = "--expose_gc --allow_natives_syntax";
let lazy_flags = if cfg!(feature = "lazy_eval_snapshot") {
"--lazy=false --lazy-eval=false --lazy-streaming=false"
let lazy_flags = if cfg!(feature = "snapshot_flags_eager_parse") {
"--no-lazy --no-lazy-eval --no-lazy-streaming"
} else {
""
};
Expand Down
2 changes: 1 addition & 1 deletion testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "./lib.rs"
anyhow.workspace = true
deno_ast.workspace = true
deno_core.workspace = true
deno_core.features = ["unsafe_use_unprotected_platform"]
deno_core.features = ["unsafe_use_unprotected_platform", "snapshot_flags_eager_parse"]
futures.workspace = true
pretty_assertions.workspace = true
prettyplease.workspace = true
Expand Down

0 comments on commit c11bc3d

Please sign in to comment.