angular-expressions icon indicating copy to clipboard operation
angular-expressions copied to clipboard

Implementation details on restricted prototype access

Open papirosko opened this issue 3 years ago • 3 comments
trafficstars

As far as i can see, the solution to allow access to properties in parent class (via prototype) is to use eslint. But I can't figure out which rule does the trick. Can you describe your solution in details?

The reason to ask is that i need that access to superclass properties and i have no user input (so security is not a problem)

papirosko avatar Nov 10 '22 15:11 papirosko

This "security" has been added here :

https://github.com/peerigon/angular-expressions/commit/07edb62902b1f6127b3dcc013da61c6316dd0bf1

You could use version 1.0.0 which allowed to access prototype keys.

edi9999 avatar Nov 10 '22 19:11 edi9999

so security was added inside core angular libraries? i thought they allowed it instead of blocking. Maybe i didn't understand their explanation correctly

papirosko avatar Nov 11 '22 06:11 papirosko

No, this was not added to the angular libraries themselves, I added it.

I think the README is not uptodate since it speaks of the fact that there is no security.

edi9999 avatar Nov 14 '22 08:11 edi9999