You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 10 on a Toshiba laptop, AMD A6
Node v6.2.0
bluebird v3.4.6
webpack v1.13.2
uglify-js v2.6.4
unknown whether this affects any other version of bluebird
issue: report of unreachable code, line 5421
background: I used webpack to create a deployment bundle. It called UglifyJs, which reported the above as an Error. In my copy of the bluebird code, I see, starting with line 5414:
function toFastProperties(obj) {
/jshint -W027,-W055,-W031/
function FakeConstructor() {}
FakeConstructor.prototype = obj;
var l = 8;
while (l--) new FakeConstructor();
return obj;
eval(obj);
}
I reversed the last two code lines, making:
function toFastProperties(obj) {
/jshint -W027,-W055,-W031/
function FakeConstructor() {}
FakeConstructor.prototype = obj;
var l = 8;
while (l--) new FakeConstructor();
eval(obj);
return obj;
}
Right or wrong for you, it made the error go away for me.
If I can provide more info that'll help, please let me know.
The text was updated successfully, but these errors were encountered:
Windows 10 on a Toshiba laptop, AMD A6
Node v6.2.0
bluebird v3.4.6
webpack v1.13.2
uglify-js v2.6.4
unknown whether this affects any other version of bluebird
issue: report of unreachable code, line 5421
background: I used webpack to create a deployment bundle. It called UglifyJs, which reported the above as an Error. In my copy of the bluebird code, I see, starting with line 5414:
function toFastProperties(obj) {
/jshint -W027,-W055,-W031/
function FakeConstructor() {}
FakeConstructor.prototype = obj;
var l = 8;
while (l--) new FakeConstructor();
return obj;
eval(obj);
}
I reversed the last two code lines, making:
function toFastProperties(obj) {
/jshint -W027,-W055,-W031/
function FakeConstructor() {}
FakeConstructor.prototype = obj;
var l = 8;
while (l--) new FakeConstructor();
eval(obj);
return obj;
}
Right or wrong for you, it made the error go away for me.
If I can provide more info that'll help, please let me know.
The text was updated successfully, but these errors were encountered: