Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Edge: Object doesn't support property or method 'fetch' #607

@kemsky

Description

@kemsky

zone.js version: 0.7.6

After minification using webpack uglify plugin (minimize: true only) error is thrown, without minification it works fine.

Minified code:

                if (R) {
                    d(R);
                    if ("undefined" != typeof e["fetch"]) {
                        var L = void 0;
                        try {
                            L = e["fetch"]()
                        } catch (e) {
                            L = e["fetch"]("about:blank") //error is here
                        }
                        L.then(function () {
                            return null
                        }, function () {
                            return null
                        });
                        if (L.constructor != R && L.constructor != F) d(L.constructor)
                    }
                }

Looks like minification bug, but i guess we could rename e to error in catch and be safe.

Adding screw_ie8: true fixes this problem also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions