Skip to content

Commit

Permalink
Merge pull request #291 from Andarist/prevent-process-polyfill
Browse files Browse the repository at this point in the history
Reference process as global's property to prevent process polyfill in…
  • Loading branch information
benjamn authored Apr 26, 2017
2 parents c5acb84 + 5f271e2 commit 2271c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/regenerator-runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,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;
Expand Down

0 comments on commit 2271c65

Please sign in to comment.