Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cafebazaar/blacksmith
/ noUnsafeEval
Function
noUnsafeEval
web/static/bower_components/angular/angular.js:1083–1092 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1081
return
csp.rules;
1082
1083
function
noUnsafeEval() {
1084
try {
1085
/* jshint -W031, -W054 */
1086
new
Function(
''
);
1087
/* jshint +W031, +W054 */
1088
return
false;
1089
} catch (e) {
1090
return
true;
1091
}
1092
}
1093
};
1094
1095
/**
Callers
1
csp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected