createdynfn-html-open-comment-params.js 760 B

123456789101112131415161718192021
  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 parameters 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. ...
  12. b. Let parameterGoal be the grammar symbol FormalParameters[~Yield, ~Await].
  13. ...
  14. 10. Let parameters be the result of parsing P, interpreted as UTF-16 encoded Unicode text
  15. as described in 6.1.4, using parameterGoal as the goal symbol. Throw a SyntaxError
  16. exception if the parse fails.
  17. ...
  18. ---*/
  19. Function("<!--", "");