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

[demo][acl] New opTypes 'R' and 'W' for getting and setting property descriptors #215

Closed
t2ym opened this issue Jan 20, 2018 · 0 comments
Closed

Comments

@t2ym
Copy link
Owner

t2ym commented Jan 20, 2018

[demo][acl] New opTypes 'R' and 'W' for getting and setting property descriptors

Version 0.0.213, which has been removed, must not be used. Please use 0.0.214 or later.

ACL

const acl = {
  ClassName: {
    property: {
      [S_DEFAULT]: 'rw-', // read, write, no-getOwnPropertyDescriptor, no-defineProperty
      '@property_creator': 'rw-RW', // read, write, getOwnPropertyDescriptor, defineProperty
    },
  },
};

Compatibility

  • ACL rwx policy for a property no longer allows getting/setting the corresponding property descriptor
  • Explicit permissions of descriptor access must be declared by 'R' and 'W' policies, which should need ACL updates
  • Global variable/function/class declarations also require 'W' permission since Object.defineProperty() is internally used for hooked global declarations.
@t2ym t2ym closed this as completed in e30db6f Jan 20, 2018
t2ym added a commit that referenced this issue Jan 20, 2018
t2ym added a commit that referenced this issue Jan 20, 2018
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

1 participant