summaryrefslogtreecommitdiff
path: root/deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js')
-rw-r--r--deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js b/deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js
new file mode 100644
index 0000000000..92d7507cff
--- /dev/null
+++ b/deps/v8/test/test262/local-tests/test/language/module-code/comment-single-line-html-close-comment-before-function.js
@@ -0,0 +1,16 @@
+// Copyright (C) 2017 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+description: >
+ HTML-like comments are not available in module code
+ (SingleLineHTMLCloseComment)
+esid: sec-html-like-comments
+es6id: B1.3
+negative:
+ phase: early
+ type: SyntaxError
+flags: [module]
+---*/
+
+-->
+function f(){}