tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

createdynfn-html-open-comment-body.js (741B)


      1 // Copyright (C) 2017 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-createdynamicfunction
      6 description: >
      7  Create a Function with the function body being a html open comment.
      8 info: |
      9  19.2.1.1.1 Runtime Semantics: CreateDynamicFunction(constructor, newTarget, kind, args)
     10    ...
     11    7. If kind is "normal", then
     12      a. Let goal be the grammar symbol FunctionBody[~Yield, ~Await].
     13    ...
     14    11. Let body be the result of parsing bodyText, interpreted as UTF-16 encoded Unicode text
     15        as described in 6.1.4, using goal as the goal symbol. Throw a SyntaxError exception if
     16        the parse fails.
     17    ...
     18 ---*/
     19 
     20 Function("<!--");
     21 
     22 reportCompare(0, 0);