Skip to content

Commit

Permalink
Remove HostEnsureCanCompileStrings and HostGetCodeForEval (w3c#523)
Browse files Browse the repository at this point in the history
These have been upstreamed to the HTML spec
  • Loading branch information
lukewarlow authored Jun 18, 2024
1 parent a1862e5 commit e776fc6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,23 +1274,6 @@ The first few steps of the [=prepare the script element=] algorithm are modified
<li>...
</ol>

### HostEnsureCanCompileStrings ### {#host-ensure-can-compile-strings}

JavaScript contains an <span>implementation-defined</span> <a href="https://tc39.es/ecma262/#sec-hostensurecancompilestrings">HostEnsureCanCompileStrings</a>(<var>realm</var>, <ins><var>parameterStrings</var>,
<var>bodyString</var>, <var>compilationType</var>, <var>parameterArgs</var>, <var>bodyArg</var></ins>)
abstract operation. User agents must use the following implementation:

1. Perform ? [[CSP3#can-compile-strings|EnsureCSPDoesNotBlockStringCompilation]](<var>realm</var>, <ins><var>parameterStrings</var>,
<var>bodyString</var>, <var>compilationType</var>, <var>parameterArgs</var>, <var>bodyArg</var></ins>).

### HostGetCodeForEval ### {#host-get-code-for-eval}

JavaScript contains an <span>implementation-defined</span> <a href="https://tc39.es/ecma262/#sec-hostgetcodeforeval">HostGetCodeForEval</a>(<var>argument</var>)
abstract operation. User agents must use the following implementation:

1. If |argument| is a {{TrustedScript}} object, return the value of its associated [=TrustedScript/data=].
1. Return ~unknown~.

## Integration with DOM ## {#integration-with-dom}

Note: See [https://github.com/whatwg/dom/pull/1258](https://github.com/whatwg/dom/pull/1258) and [https://github.com/whatwg/dom/pull/1268](https://github.com/whatwg/dom/pull/1268) which upstream this integration.
Expand Down

0 comments on commit e776fc6

Please sign in to comment.