MCPcopy
hub / github.com/angular-ui/ui-grid / ensureSafeAssignContext

Function ensureSafeAssignContext

lib/test/angular/1.5.0/angular.js:13360–13368  ·  view source on GitHub ↗
(obj, fullExpression)

Source from the content-addressed store, hash-verified

13358}
13359
13360function ensureSafeAssignContext(obj, fullExpression) {
13361 if (obj) {
13362 if (obj === (0).constructor || obj === (false).constructor || obj === ''.constructor ||
13363 obj === {}.constructor || obj === [].constructor || obj === Function.constructor) {
13364 throw $parseMinErr('isecaf',
13365 'Assigning to a constructor is disallowed! Expression: {0}', fullExpression);
13366 }
13367 }
13368}
13369
13370var OPERATORS = createMap();
13371forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '), function(operator) { OPERATORS[operator] = true; });

Callers 1

angular.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected