From 24efe1216cdbb94f2a3cdedbe3468e013b9a77f2 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Mon, 5 Mar 2018 18:02:26 +0000 Subject: [PATCH] util: assign missed deprecation number Refs: https://github.com/nodejs/node/pull/18415 --- doc/api/deprecations.md | 4 ++-- lib/internal/bootstrap_node.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index b1cad2d701fbde..4eb90c4c38c2d8 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -932,8 +932,8 @@ Using the `noAssert` argument has no functionality anymore. All input is going to be verified, no matter if it is set to true or not. Skipping the verification could lead to hard to find errors and crashes. - -### DEP0XXX: process.binding('util').is[...] typechecks + +### DEP0103: process.binding('util').is[...] typechecks Type: Documentation-only (supports [`--pending-deprecation`][]) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 2444c117816ed4..97b6db03ce107d 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -128,7 +128,7 @@ 'Accessing native typechecking bindings of Node ' + 'directly is deprecated. ' + `Please use \`util.types.${name}\` instead.`, - 'DEP0XXX') : + 'DEP0103') : types[name]; } }