mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
FUTURE(ext/fs): make Deno.FsFile
constructor illegal (#23235)
I'm unsure whether we're planning to make the `Deno.FsFile` constructor illegal or remove `FsFile` from the `Deno.*` namspace in Deno 2. Either way, this PR works towards the former. I'll create a superceding PR if the latter is planned instead. Towards #23089
This commit is contained in:
parent
b74a4f29f2
commit
d3f3e0d717
4 changed files with 29 additions and 0 deletions
|
@ -678,6 +678,11 @@ function bootstrapMainRuntime(runtimeOptions, warmup = false) {
|
|||
9: future,
|
||||
} = runtimeOptions;
|
||||
|
||||
// TODO(iuioiua): remove in Deno v2. This allows us to dynamically delete
|
||||
// class properties within constructors for classes that are not defined
|
||||
// within the Deno namespace.
|
||||
internals.future = future;
|
||||
|
||||
removeImportedOps();
|
||||
|
||||
deprecatedApiWarningDisabled = shouldDisableDeprecatedApiWarning;
|
||||
|
@ -840,6 +845,11 @@ function bootstrapWorkerRuntime(
|
|||
9: future,
|
||||
} = runtimeOptions;
|
||||
|
||||
// TODO(iuioiua): remove in Deno v2. This allows us to dynamically delete
|
||||
// class properties within constructors for classes that are not defined
|
||||
// within the Deno namespace.
|
||||
internals.future = future;
|
||||
|
||||
deprecatedApiWarningDisabled = shouldDisableDeprecatedApiWarning;
|
||||
verboseDeprecatedApiWarning = shouldUseVerboseDeprecatedApiWarning;
|
||||
performance.setTimeOrigin(DateNow());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue