@@ -2,12 +2,10 @@
|
2 | 2 | |
3 | 3 | const { |
4 | 4 | ObjectFreeze, |
5 | | - StringPrototypeStartsWith, |
6 | 5 | } = primordials; |
7 | 6 | |
8 | 7 | const permission = internalBinding('permission'); |
9 | 8 | const { validateString } = require('internal/validators'); |
10 | | -const { resolve } = require('path'); |
11 | 9 | |
12 | 10 | let experimentalPermission; |
13 | 11 | |
@@ -25,9 +23,6 @@ module.exports = ObjectFreeze({
|
25 | 23 | if (reference != null) { |
26 | 24 | // TODO: add support for WHATWG URLs and Uint8Arrays. |
27 | 25 | validateString(reference, 'reference'); |
28 | | -if (StringPrototypeStartsWith(scope, 'fs')) { |
29 | | -reference = resolve(reference); |
30 | | -} |
31 | 26 | } |
32 | 27 | |
33 | 28 | return permission.has(scope, reference); |
|