summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/bluebird/js/release/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/bluebird/js/release/util.js')
-rw-r--r--deps/npm/node_modules/bluebird/js/release/util.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/npm/node_modules/bluebird/js/release/util.js b/deps/npm/node_modules/bluebird/js/release/util.js
index 7ac0e2fa19..c5617ee870 100644
--- a/deps/npm/node_modules/bluebird/js/release/util.js
+++ b/deps/npm/node_modules/bluebird/js/release/util.js
@@ -195,8 +195,12 @@ function toFastProperties(obj) {
/*jshint -W027,-W055,-W031*/
function FakeConstructor() {}
FakeConstructor.prototype = obj;
- var l = 8;
- while (l--) new FakeConstructor();
+ var receiver = new FakeConstructor();
+ function ic() {
+ return typeof receiver.foo;
+ }
+ ic();
+ ic();
return obj;
eval(obj);
}