feat: expose dummy module.exports to the sandboxed preload scripts (#39484)

This commit is contained in:
Milan Burda 2023-08-22 06:43:08 +02:00 committed by GitHub
parent 90865fa97d
commit 3102a257af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,7 @@
const types = {
require: typeof require,
module: typeof module,
exports: typeof exports,
process: typeof process,
Buffer: typeof Buffer
};