Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular-ui/ui-router
/ noUnsafeEval
Function
noUnsafeEval
test/angular/1.5/angular.js:1157–1165 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1155
return
csp.rules;
1156
1157
function
noUnsafeEval() {
1158
try {
1159
// eslint-disable-next-line no-new, no-new-func
1160
new
Function(
''
);
1161
return
false;
1162
} catch (e) {
1163
return
true;
1164
}
1165
}
1166
};
1167
1168
/**
Callers
1
csp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected