diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-12-13 18:46:35 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-12-16 10:40:14 +0300 |
commit | 7e5bf80fd1a06655564ea88f5d7867b3f4fc7da0 (patch) | |
tree | affba420c8f1928dec5ded06ec8baa4382381305 /lib/internal/fs | |
parent | c88ace4fc333f938831994385208f891f6f706ea (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.js | 5 |
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, |