From 5f271e21faf08df65ea1ddd8944c590f607e0f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 26 Apr 2017 16:26:28 +0200 Subject: [PATCH] Reference process as global's property to prevent process polyfill in users' tool chains (fixes #289) --- packages/regenerator-runtime/runtime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/regenerator-runtime/runtime.js b/packages/regenerator-runtime/runtime.js index 212da1bc1..e06869ed3 100644 --- a/packages/regenerator-runtime/runtime.js +++ b/packages/regenerator-runtime/runtime.js @@ -189,8 +189,8 @@ } } - if (typeof process === "object" && process.domain) { - invoke = process.domain.bind(invoke); + if (typeof global.process === "object" && global.process.domain) { + invoke = global.process.domain.bind(invoke); } var previousPromise;