summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/string/S8.4_A7.2.js
blob: 45652a1b514e380ead514cb3a90e1dcdabc9178c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-line-terminators
description: >
  Line terminator <CR> may appear as an escape sequence within a StringLiteral
info: |
  A line terminator cannot occur within any token except a StringLiteral, Template, or TemplateSubstitutionTail.
---*/

assert.throws(ReferenceError, function() {
  eval("var x = asdf\u000Dghjk");
});



reportCompare(0, 0);