MCPcopy Create free account
hub / github.com/angular-ui/ui-router / ensureSafeMemberName

Function ensureSafeMemberName

test/angular/1.3/angular.js:11756–11765  ·  view source on GitHub ↗
(name, fullExpression)

Source from the content-addressed store, hash-verified

11754
11755
11756function ensureSafeMemberName(name, fullExpression) {
11757 if (name === "__defineGetter__" || name === "__defineSetter__"
11758 || name === "__lookupGetter__" || name === "__lookupSetter__"
11759 || name === "__proto__") {
11760 throw $parseMinErr('isecfld',
11761 'Attempting to access a disallowed field in Angular expressions! '
11762 + 'Expression: {0}', fullExpression);
11763 }
11764 return name;
11765}
11766
11767function getStringValue(name, fullExpression) {
11768 // From the JavaScript docs:

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