summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/line-terminators/invalid-comment-single-cr.js
blob: 7a7f26f14e870e02dbfea0ee051215898a1630b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |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 can not contain CARRIAGE RETURN (U+000D) inside
es5id: 7.3_A3.2_T2
esid: sec-line-terminators
description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

//
 this text is not included in the single-line comment that precedes it