* 仕様書

[REFS[
- [5] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-04-09 09:15:24 +09:00]] 版) <https://html.spec.whatwg.org/#hostensurecancompilestrings(callerrealm,-calleerealm)>
- [4] [CITE@en[Content Security Policy Level 3]] ([TIME[2016-04-06 23:57:38 +09:00]] 版) <https://w3c.github.io/webappsec-csp/#can-compile-strings>
]REFS]

* 処理

[6] [[Web]] では、
[[JavaScript]] の[[抽象演算]] [DFN[[CODE[HostEnsureCanCompileStrings]]]]
は、
[CODE[EnsureCSPDoesNotBlockStringCompilation]] に[[引数]]を引き渡して実行した結果に
[[?][? (JavaScript)]] を適用した結果を返さなければ[MUST[なりません]] [SRC[>>5]]。

* 歴史

[1] [CITE@en[Implement 'HostEnsureCanCompileStrings'. · w3c/webappsec-csp@69d9779]]
([TIME[2016-04-07 11:07:26 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/69d9779466c93ffd51d057bfb7ef8dc09d2a5353>

[2] [CITE@en[Check both caller and callee realm for 'unsafe-eval'. · w3c/webappsec-csp@8d3e743]]
([TIME[2016-04-07 11:09:51 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/8d3e743d291a25fd6f116dd9cc487f06f0e25104>

[3] [CITE@en[Wire up HostEnsureCanCompileStrings to CSP · whatwg/html@374b54d]]
([TIME[2016-04-09 13:39:15 +09:00]] 版)
<https://github.com/whatwg/html/commit/374b54d3fce7c9c72b940d3e97f8e8f2845cde9b>

[7] [CITE@en[Drop script-src's initialization; HostEnsureCanCompileStrings takes c… · w3c/webappsec-csp@a5773d2]]
([TIME[2016-04-15 17:50:16 +09:00]] 版)
<https://github.com/w3c/webappsec-csp/commit/a5773d213e7a8c80aad6c1434b04d6e49f2e4bab>

[8] [CITE@en[Send violation reports for 'unsafe-eval'.]]
([[mikewest]]著, [TIME[2017-06-21 22:21:00 +09:00]])
<https://github.com/w3c/webappsec-csp/commit/94ace26a66dd0e14ced54d4274799f5143b592f9>