Skip to content

Commit d32bb50

Browse files
authored
Update dynamic code compilation support (#445)
1 parent 51d9e37 commit d32bb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,15 +1749,15 @@ The Trusted Types portion of this algorithm uses |calleeRealm| and its CSP setti
17491749
</pre>
17501750
</div>
17511751

1752-
Given a [[ECMA-262#realm|realm]] (|calleeRealm|), a string
1753-
(|source|) <ins>, a boolean |wasCodeLike| and a string |compilationSink|</ins>, this algorithm returns <del>normally</del><ins>the
1752+
Given a [[ECMA-262#realm|realm]] (|calleeRealm|), a list of strings (|parameterStrings|), a string (|bodyString|), <ins> a string (|source|), an enum (|compilationType|), and a boolean |wasCodeLike|</ins>, this algorithm returns <del>normally</del><ins>the
17541753
source string to compile</ins> if compilation is allowed, and
17551754
throws an "`EvalError`" if not:
17561755

17571756
1. <ins>If |wasCodeLike| is true, let |sourceToValidate| be a new instance of
17581757
the {{TrustedScript}} interface, with its `[[Data]]` internal slot value
17591758
set to |source|. Otherwise, let |sourceToValidate| be |source|.</ins>
17601759

1760+
1. <ins>Let |compilationSink| be `"Function"` if |compilationType| is `*FUNCTION*`, otherwise `"Eval"`.</ins>
17611761
1. <ins>Let |sourceString| be the result of executing the
17621762
[$Get Trusted Type compliant string$] algorithm, with:
17631763
* |calleeRealm| as |global|,

0 commit comments

Comments
 (0)