X Tutup
The Wayback Machine - https://web.archive.org/web/20210813191745/https://github.com/nodejs/node/commit/b3f35e2c70
Skip to content
Permalink
Browse files
doc,lib: add missing deprecation code
PR-URL: #37541
Refs: #37136
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cjihrig committed Mar 1, 2021
1 parent f91509b commit b3f35e2c70c7d1e3ee7b4c3fd74672adceb16c52
Showing with 3 additions and 3 deletions.
  1. +1 −1 doc/api/deprecations.md
  2. +2 −2 lib/internal/perf/observe.js
@@ -2751,7 +2751,7 @@ Previously, `index.js` and extension searching lookups would apply to
With this deprecation, all ES module main entry point resolutions require
an explicit [`"exports"` or `"main"` entry][] with the exact file extension.

### DEP0XXX: Extension PerformanceEntry properties
### DEP0152: Extension PerformanceEntry properties
<!-- YAML
changes:
- version: REPLACEME
@@ -332,10 +332,10 @@ function observerCallback(name, type, startTime, duration, details) {
enumerable: true,
get: deprecate(() => {
return entry[kDeprecatedFields].get(key);
}, kDeprecationMessage, 'DEP0XXX'),
}, kDeprecationMessage, 'DEP0152'),
set: deprecate((value) => {
entry[kDeprecatedFields].set(key, value);
}, kDeprecationMessage, 'DEP0XXX'),
}, kDeprecationMessage, 'DEP0152'),
};
}
ObjectDefineProperties(entry, props);

0 comments on commit b3f35e2

Please sign in to comment.
X Tutup