Skip to content

Commit a689930

Browse files
committed
[Fixes #305] Confuse webpack
Cc @TheLarkInn, is there a better way?
1 parent b33f473 commit a689930

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/es6-promise/asap.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ function flush() {
9696

9797
function attemptVertx() {
9898
try {
99-
const r = require;
100-
const vertx = r('vertx');
99+
const vertx = Function('return this')().require('vertx');
101100
vertxNext = vertx.runOnLoop || vertx.runOnContext;
102101
return useVertxTimer();
103102
} catch(e) {

0 commit comments

Comments
 (0)