summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/line-terminators/invalid-comment-single-ls.js
blob: 766ed198e3acad0621d99fe5641b78eb52b0753c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |reftest| error:SyntaxError
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: |
    Single line comments are terminated by the LINE SEPARATOR (U+2028)
    character
es5id: 7.3_A3.3_T1
description: Insert LINE SEPARATOR (\u2028) into single line comment
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

// single line LS>
??? (invalid)