MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / noUnsafeEval

Function noUnsafeEval

OpenReservation/wwwroot/Scripts/angular.js:1094–1103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1092 return csp.rules;
1093
1094 function noUnsafeEval() {
1095 try {
1096 /* jshint -W031, -W054 */
1097 new Function('');
1098 /* jshint +W031, +W054 */
1099 return false;
1100 } catch (e) {
1101 return true;
1102 }
1103 }
1104 };
1105
1106 /**

Callers 1

cspFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected