Skip to content

setImmediate compatibility in IE10  #1163

Closed
@kwonoj

Description

@kwonoj

among major browser engines, IE10 (and above, IE11) have implementation of window.setImmediate (https://developer.mozilla.org/ko/docs/Web/API/Window/setImmediate) and current implementation of RxJS immediate tries to utilize it. Currently it has 2 issues

  • current codebase cannot call window.setImmediate
    : our codebase assigns it as
if (root.setImmediate) {
      this.setImmediate = root.setImmediate;

which brings error like below

IE 11.0.0 (Windows 10 0.0.0) AsapScheduler should schedule an action to happen later FAILED
        TypeError: Invalid calling object

reason of IE's behavior (https://msdn.microsoft.com/library/gg622930(v=vs.85).aspx).

confirmed as 'won't fix'.

Possible options

  • solve RxJS side issue only (calling setImmediate), let user decide to use window.setImmediate or not explicitly
  • ignore window.setImmediate and use polyfill (onreadystatechange?)

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