createdynfn-html-open-comment-body.js 719 B

1234567891011121314151617181920
  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. esid: sec-createdynamicfunction
  5. description: >
  6. Create a Function with the function body being a html open comment.
  7. info: |
  8. 19.2.1.1.1 Runtime Semantics: CreateDynamicFunction(constructor, newTarget, kind, args)
  9. ...
  10. 7. If kind is "normal", then
  11. a. Let goal be the grammar symbol FunctionBody[~Yield, ~Await].
  12. ...
  13. 11. Let body be the result of parsing bodyText, interpreted as UTF-16 encoded Unicode text
  14. as described in 6.1.4, using goal as the goal symbol. Throw a SyntaxError exception if
  15. the parse fails.
  16. ...
  17. ---*/
  18. Function("<!--");