diff options
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index a038de518..255c5fb6a 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -534,7 +534,10 @@ const internalSymbol = Symbol("Deno.internal"); const finalDenoNs = { internal: internalSymbol, [internalSymbol]: internals, - resources: core.resources, + resources() { + internals.warnOnDeprecatedApi("Deno.resources()", new Error().stack); + return core.resources(); + }, close: core.close, ...denoNs, // Deno.test and Deno.bench are noops here, but kept for compatibility; so |