Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/angular-ui/ui-router
/ noUnsafeEval
Function
noUnsafeEval
test/angular/1.6/angular.js:1291–1299 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1289
return
csp.rules;
1290
1291
function
noUnsafeEval() {
1292
try {
1293
// eslint-disable-next-line no-new, no-new-func
1294
new
Function(
''
);
1295
return
false;
1296
} catch (e) {
1297
return
true;
1298
}
1299
}
1300
};
1301
1302
/**
Callers
1
csp
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected