Skip to content

Error when identifying old Internet Explorer version #40

@roopemerikukka

Description

@roopemerikukka

Hi,

I'm getting error when the test checks for old IE version:

/*@cc_on

  @if (@_jscript_version <= 10)
    isOldInternetExplorer = true;
  @end

@*/

The error I'm getting is: Unable to get property 'init' of undefined or null reference

This can be fixed by putting variable identifier in front of isOldInternetExplorer So the working check would be looking like this:

/*@cc_on

  @if (@_jscript_version <= 10)
    var isOldInternetExplorer = true;
  @end

@*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions