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