From a22870fa42fd5d94fbbbba398055a2a709a8c295 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 27 Oct 2016 13:16:59 -0700 Subject: [PATCH] Install electron shims in benchmarks This is needed because some packages may still rely on the ability to pass null/undefined to path.dirname and friends Signed-off-by: Nathan Sobo --- src/initialize-benchmark-window.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/initialize-benchmark-window.js b/src/initialize-benchmark-window.js index e4be4420b..85d4b0d01 100644 --- a/src/initialize-benchmark-window.js +++ b/src/initialize-benchmark-window.js @@ -13,6 +13,7 @@ export default async function () { const ApplicationDelegate = require('../src/application-delegate') const AtomEnvironment = require('../src/atom-environment') const TextEditor = require('../src/text-editor') + require('../src/electron-shims') const exportsPath = path.join(resourcePath, 'exports') require('module').globalPaths.push(exportsPath) // Add 'exports' to module search path.