Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-12-13 18:46:35 +0300
committerMichaël Zasso <targos@protonmail.com>2019-12-16 10:40:14 +0300
commit7e5bf80fd1a06655564ea88f5d7867b3f4fc7da0 (patch)
treeaffba420c8f1928dec5ded06ec8baa4382381305 /lib/internal/fs
parentc88ace4fc333f938831994385208f891f6f706ea (diff)
lib: enforce use of Promise from primordials
PR-URL: https://github.com/nodejs/node/pull/30936 Refs: https://github.com/nodejs/node/issues/30697 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib/internal/fs')
-rw-r--r--lib/internal/fs/rimraf.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/internal/fs/rimraf.js b/lib/internal/fs/rimraf.js
index 3402af60a40..02cdfdf4b5d 100644
--- a/lib/internal/fs/rimraf.js
+++ b/lib/internal/fs/rimraf.js
@@ -5,6 +5,11 @@
// - Bring your own custom fs module is not currently supported.
// - Some basic code cleanup.
'use strict';
+
+const {
+ Promise,
+} = primordials;
+
const { Buffer } = require('buffer');
const {
chmod,