Currently the Trusted Types canCompileStrings function is just doing TrustedTypes checks, it could make sense to move the CSP 'unsafe-eval' checking into that function too.
<rdar://problem/127596772>
From a perf point of view it probably doesn't so going to close