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

instanceof errors in IE 11 #6733

Closed
hyperknot opened this issue May 24, 2018 · 2 comments
Closed

instanceof errors in IE 11 #6733

hyperknot opened this issue May 24, 2018 · 2 comments

Comments

@hyperknot
Copy link

mapbox-gl-js version: 0.45.0
browser: IE 11

Link to Demonstration

Official examples:

The examples work, but throw an error in IE 11 for web_worker_transfer.js.

Invalid operand to 'instanceof': Function expected
export function deserialize(input: Serialized): mixed {
    if (input === null ||
        input === undefined ||
        typeof input === 'boolean' ||
        typeof input === 'number' ||
        typeof input === 'string' ||
        input instanceof Boolean ||
        input instanceof Number ||
        input instanceof String ||
        input instanceof Date ||
        input instanceof RegExp ||
        input instanceof ArrayBuffer ||
        ArrayBuffer.isView(input) ||
        input instanceof ImageData) {
        return input;
    }

Does IE 11 require a core-js polyfill to work correctly?

@bart-1990
Copy link

I think it's because ArrayBuffer is not fully supported in IE.

@ansis
Copy link
Contributor

ansis commented Dec 9, 2020

Closing because IE 11 is no longer supported. Thanks for reporting this.

@ansis ansis closed this as completed Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants