summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/string/S8.4_A7.1.js
blob: 80c63885d1b8ebf4f3c9901123b2af6578358a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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 <LF> 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\u000Aghjk");
});

reportCompare(0, 0);