mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/node): add stub for AsyncResource#asyncId() (#23372)
Ref https://github.com/denoland/deno/issues/23263
This commit is contained in:
parent
1835b4f061
commit
f36a8951a4
2 changed files with 13 additions and 0 deletions
|
@ -125,3 +125,8 @@ Deno.test(async function bind() {
|
|||
|
||||
assertEquals(await deferred.promise, null);
|
||||
});
|
||||
|
||||
Deno.test(function asyncResourceStub() {
|
||||
const resource = new AsyncResource("dbquery");
|
||||
assert(typeof resource.asyncId() === "number");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue