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

support CPS mode #893

@IgorMinar

Description

@IgorMinar

https://developer.mozilla.org/en/Security/CSP/Default_CSP_restrictions

there is just one place in parser which needs to be fixed. we can feature detect CPS with:

var CSP_MODE = (function() {
  try {
    return !(new Function("return true")());
  } catch (e) {
    return true;
  }
})();

if detected we are not going to dynamically create getter fn.

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