-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
When used in an ESM context, node:fs module is not extensible.
graceful-fs tries to define a Symbol property on the fs namespace here:
node-graceful-fs/graceful-fs.js
Lines 24 to 30 in 2343799
| function publishQueue(context, queue) { | |
| Object.defineProperty(context, gracefulQueue, { | |
| get: function() { | |
| return queue | |
| } | |
| }) | |
| } |
This causes a TypeError:
Object.defineProperty(context, gracefulQueue, {
^
TypeError: Cannot define property Symbol(graceful-fs.queue), object is not extensible
Would be best if the check were to be implemented differently, rather than defining a property on node's fs module.
himynameisdave, air2 and wasd171himynameisdave
Metadata
Metadata
Assignees
Labels
No labels