mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
Upgrade to rusty_v8 v0.4.0 (#4856)
This commit is contained in:
parent
c43aaa3996
commit
10a174834e
9 changed files with 131 additions and 118 deletions
|
@ -24,7 +24,7 @@ pub static WINDOW_LIB: &str = include_str!("js/lib.deno.window.d.ts");
|
|||
#[test]
|
||||
fn cli_snapshot() {
|
||||
let mut isolate = deno_core::Isolate::new(
|
||||
deno_core::StartupData::Snapshot(CLI_SNAPSHOT),
|
||||
deno_core::StartupData::Snapshot(deno_core::Snapshot::Static(CLI_SNAPSHOT)),
|
||||
false,
|
||||
);
|
||||
deno_core::js_check(isolate.execute(
|
||||
|
@ -41,7 +41,9 @@ fn cli_snapshot() {
|
|||
#[test]
|
||||
fn compiler_snapshot() {
|
||||
let mut isolate = deno_core::Isolate::new(
|
||||
deno_core::StartupData::Snapshot(COMPILER_SNAPSHOT),
|
||||
deno_core::StartupData::Snapshot(deno_core::Snapshot::Static(
|
||||
COMPILER_SNAPSHOT,
|
||||
)),
|
||||
false,
|
||||
);
|
||||
deno_core::js_check(isolate.execute(
|
||||
|
|
|
@ -4,6 +4,7 @@ use deno_core::Script;
|
|||
|
||||
use crate::js::CLI_SNAPSHOT;
|
||||
use crate::js::COMPILER_SNAPSHOT;
|
||||
use deno_core::Snapshot;
|
||||
use deno_core::StartupData;
|
||||
|
||||
#[cfg(feature = "no-snapshot-init")]
|
||||
|
@ -29,7 +30,7 @@ pub fn deno_isolate_init() -> StartupData<'static> {
|
|||
#[cfg(feature = "check-only")]
|
||||
let data = b"";
|
||||
|
||||
StartupData::Snapshot(data)
|
||||
StartupData::Snapshot(Snapshot::Static(data))
|
||||
}
|
||||
|
||||
#[cfg(feature = "no-snapshot-init")]
|
||||
|
@ -55,5 +56,5 @@ pub fn compiler_isolate_init() -> StartupData<'static> {
|
|||
#[cfg(feature = "check-only")]
|
||||
let data = b"";
|
||||
|
||||
StartupData::Snapshot(data)
|
||||
StartupData::Snapshot(Snapshot::Static(data))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue