mirror of
https://github.com/denoland/deno.git
synced 2025-02-08 07:16:56 -05:00
chore: remove warnOnDeprecatedApi()
(#25673)
This commit is contained in:
parent
b0525edd6f
commit
01b5dfd9ea
3 changed files with 3 additions and 6 deletions
|
@ -495,7 +495,7 @@ fn resolve_flags_and_init(
|
||||||
};
|
};
|
||||||
|
|
||||||
init_v8_flags(&default_v8_flags, &flags.v8_flags, get_v8_flags_from_env());
|
init_v8_flags(&default_v8_flags, &flags.v8_flags, get_v8_flags_from_env());
|
||||||
// TODO(bartlomieju): remove last argument in Deno 2.
|
// TODO(bartlomieju): remove last argument once Deploy no longer needs it
|
||||||
deno_core::JsRuntime::init_platform(
|
deno_core::JsRuntime::init_platform(
|
||||||
None, /* import assertions enabled */ false,
|
None, /* import assertions enabled */ false,
|
||||||
);
|
);
|
||||||
|
|
|
@ -745,7 +745,7 @@ pub async fn run(
|
||||||
|
|
||||||
// Initialize v8 once from the main thread.
|
// Initialize v8 once from the main thread.
|
||||||
v8_set_flags(construct_v8_flags(&[], &metadata.v8_flags, vec![]));
|
v8_set_flags(construct_v8_flags(&[], &metadata.v8_flags, vec![]));
|
||||||
// TODO(bartlomieju): remove last argument in Deno 2.
|
// TODO(bartlomieju): remove last argument once Deploy no longer needs it
|
||||||
deno_core::JsRuntime::init_platform(None, true);
|
deno_core::JsRuntime::init_platform(None, true);
|
||||||
|
|
||||||
let mut worker = worker_factory
|
let mut worker = worker_factory
|
||||||
|
|
|
@ -111,9 +111,6 @@ ObjectDefineProperties(Symbol, {
|
||||||
let windowIsClosing = false;
|
let windowIsClosing = false;
|
||||||
let globalThis_;
|
let globalThis_;
|
||||||
|
|
||||||
// TODO(2.0): remove once all deprecated APIs are removed.
|
|
||||||
function warnOnDeprecatedApi() {}
|
|
||||||
|
|
||||||
function windowClose() {
|
function windowClose() {
|
||||||
if (!windowIsClosing) {
|
if (!windowIsClosing) {
|
||||||
windowIsClosing = true;
|
windowIsClosing = true;
|
||||||
|
@ -506,7 +503,7 @@ function removeImportedOps() {
|
||||||
// FIXME(bartlomieju): temporarily add whole `Deno.core` to
|
// FIXME(bartlomieju): temporarily add whole `Deno.core` to
|
||||||
// `Deno[Deno.internal]` namespace. It should be removed and only necessary
|
// `Deno[Deno.internal]` namespace. It should be removed and only necessary
|
||||||
// methods should be left there.
|
// methods should be left there.
|
||||||
ObjectAssign(internals, { core, warnOnDeprecatedApi });
|
ObjectAssign(internals, { core });
|
||||||
const internalSymbol = Symbol("Deno.internal");
|
const internalSymbol = Symbol("Deno.internal");
|
||||||
const finalDenoNs = {
|
const finalDenoNs = {
|
||||||
internal: internalSymbol,
|
internal: internalSymbol,
|
||||||
|
|
Loading…
Add table
Reference in a new issue