Skip to content

Commit 1a9b4a8

Browse files
committed
Update to newer deno_core
1 parent 6994d75 commit 1a9b4a8

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

Cargo.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
deno_ast = { version = "0.22.0", features = ["transpiling"] }
10-
deno_core = "0.171.0"
10+
deno_core = "0.174.0"
1111
reqwest = "0.11.14"
1212
tokio = { version = "1.25.0", features = ["full"] }

empty.js

Whitespace-only changes.

src/runtime.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
((globalThis) => {
22
const { core } = Deno;
33
const { ops } = core;
4-
// Note: Do not call this when snapshotting, it should be called
5-
// at runtime. This example does not use V8 snapshots.
6-
core.initializeAsyncOps();
74

85
function argsToMessage(...args) {
96
return args.map((arg) => JSON.stringify(arg)).join(" ");
@@ -30,7 +27,7 @@
3027
},
3128

3229
fetch: async (url) => {
33-
return ops.op_fetch(url);
30+
return core.opAsync("op_fetch", url);
3431
},
3532
};
3633
})(globalThis);

0 commit comments

Comments
 (0)