Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live function is wrongly eliminated #417

Closed
targos opened this issue Feb 10, 2017 · 1 comment · Fixed by #414
Closed

Live function is wrongly eliminated #417

targos opened this issue Feb 10, 2017 · 1 comment · Fixed by #414
Labels
bug Confirmed bug

Comments

@targos
Copy link

targos commented Feb 10, 2017

This is part of a larger library. Tested with babili 0.0.11.

Input:

(function (e, t) {
    (function (e) {
        "use strict";
        function n(t, n) {
            t = t || [], n = n || {};
            try {
                return new Blob(t, n)
            } catch (r) {
                if ("TypeError" !== r.name)throw r;
                for (var o = e.BlobBuilder || e.MSBlobBuilder || e.MozBlobBuilder || e.WebKitBlobBuilder,
                         i = new o,
                         s = 0; s < t.length; s += 1)i.append(t[s]);
                return i.getBlob(n.type)
            }
        }

        t.exports = n
    }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
})(null, {});

Output (prettyfied):

(function (a, b) {
    (function (c) {
        "use strict";
        b.exports = d
    }).call(this, "undefined" == typeof global ? "undefined" == typeof self ? "undefined" == typeof window ? {} : window : self : global)
})(null, {});

d is assigned to exports but the definition was removed.

@boopathi
Copy link
Member

#414 fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants