From 6daf1661d77c2f89d77a73f817268a6f39a91e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Samouco?= Date: Tue, 13 Nov 2018 11:42:15 +0000 Subject: [PATCH] fix vm.Script usage on node@10 --- eval.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eval.js b/eval.js index 59af2ba..c0875a9 100644 --- a/eval.js +++ b/eval.js @@ -21,11 +21,11 @@ module.exports = function (content, filename, scope, includeGlobals) { if (typeof filename === 'object') { includeGlobals = scope scope = filename - filename = null + filename = '' } else if (typeof filename === 'boolean') { includeGlobals = filename scope = {} - filename = null + filename = '' } }