Skip to content

Polyfills for IE11 not working, for example .includes() #4128

@suuuunto

Description

@suuuunto

Please provide us with the following information:

OS?

Windows 8, 10. Linux (Ubuntu15.10). Mac OSX ( El Capitan)

Versions.

angular-cli: 1.0.0-beta.24
node: 5.12.0
os: linux x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/compiler-cli: 2.4.4

Repro steps.

  1. App was created with angular-cli beta 24, github example on https://github.com/suuuunto/includes-example

  2. Component has an function includes() and the result goes to console.

  3. For ng build, tsconfig.json had to be adjusted to "es7" for "lib", with "es6" a build error occurs

  4. Open page with IE 11 on Win 8.1 an error occurs in console:
    EXCEPTION: Object doesn't support property or method 'includes'

  5. Imo core-js polyfills should solve that.

The log given by the failure.

EXCEPTION: Object doesn't support property or method 'includes'

Thanks, suuuunto

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