Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/angular-ui/ui-grid
/ noUnsafeEval
Function
noUnsafeEval
lib/test/angular/1.5.0/angular.js:1113–1122 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1111
return
csp.rules;
1112
1113
function
noUnsafeEval() {
1114
try {
1115
/* jshint -W031, -W054 */
1116
new
Function(
''
);
1117
/* jshint +W031, +W054 */
1118
return
false;
1119
} catch (e) {
1120
return
true;
1121
}
1122
}
1123
};
1124
1125
/**
Callers
1
csp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected