node/lib/internal/fs
Antoine du Hamel ded83350a0
lib: make primordials Promise methods safe
`catch` and `finally` methods on %Promise.prototype% looks up the `then`
property of the instance, making it at risk of prototype pollution.

PR-URL: https://github.com/nodejs/node/pull/38650
Backport-PR-URL: https://github.com/nodejs/node/pull/38878
Refs: https://tc39.es/ecma262/#sec-promise.prototype.catch
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2021-06-14 08:17:31 +02:00
..
dir.js fs: refactor to avoid unsafe array iteration 2021-01-06 11:31:53 +01:00
promises.js lib: make primordials Promise methods safe 2021-06-14 08:17:31 +02:00
read_file_context.js fs: move constants to internal/fs/utils.js 2021-04-06 12:24:15 -07:00
rimraf.js fs: use throwIfNoEntry option on statSync calls 2021-01-24 08:59:44 -08:00
streams.js stream: the position of _read() is wrong 2021-05-03 13:34:49 +02:00
sync_write_stream.js fs: refactor to use more primordials 2020-11-27 18:40:51 +01:00
utils.js fs: fix error when writing buffers > INT32_MAX 2021-05-17 09:11:35 +02:00
watchers.js fs: use createDeferredPromise() in promises.watch() 2021-02-17 23:33:38 -05:00