MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / ensureSafeMemberName

Function ensureSafeMemberName

code/songhop/www/lib/angular/angular.js:11601–11610  ·  view source on GitHub ↗
(name, fullExpression)

Source from the content-addressed store, hash-verified

11599
11600
11601function ensureSafeMemberName(name, fullExpression) {
11602 if (name === "__defineGetter__" || name === "__defineSetter__"
11603 || name === "__lookupGetter__" || name === "__lookupSetter__"
11604 || name === "__proto__") {
11605 throw $parseMinErr('isecfld',
11606 'Attempting to access a disallowed field in Angular expressions! '
11607 + 'Expression: {0}', fullExpression);
11608 }
11609 return name;
11610}
11611
11612function ensureSafeObject(obj, fullExpression) {
11613 // nifty check if obj is Function that is fast and works across iframes and other contexts

Callers 4

angular.jsFile · 0.70
setterFunction · 0.70
cspSafeGetterFnFunction · 0.70
getterFnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected