-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DisposableStack is not implemented #20821
Comments
Also for @lucacasonato Shouldn't situations like this — where compiling (type-checking) succeeds, but the compiled JavaScript result fails at runtime — be labelled as
bug
|
This bug is still present in Deno v1.40.5. And I agree, this seems like a bug. The VSCode extension and |
Just fyi. I'm using the following polyfill and it seems working OK. (thanks to https://deno.land/x/dispose) import {
AsyncDisposableStack,
DisposableStack,
} from "https://deno.land/x/dispose@1.0.1/mod.ts";
// DisposableStack and AsyncDisposableStack are not available yet.
// https://github.com/denoland/deno/issues/20821
// deno-lint-ignore no-explicit-any
(globalThis as any).DisposableStack ??= DisposableStack;
// deno-lint-ignore no-explicit-any
(globalThis as any).AsyncDisposableStack ??= AsyncDisposableStack; |
DisposableStack and AsyncDisposableStack are available on types but actually not available yet. denoland/deno#20821
Bumping this. This issue is present on the latest canary version as of writing. My
|
There's been some movement on this one in the past weeks in V8: https://issues.chromium.org/issues/42203506 We will update to the version that implements |
Feb 2025 the issue is still there. Even with included libs |
The types are there, but it fails at runtime
deno/cli/tsc/dts/lib.esnext.disposable.d.ts
Line 53 in edeccef
The text was updated successfully, but these errors were encountered: