test262/test/language/line-terminators/S7.3_A3.2_T2.js

13 lines
403 B
JavaScript

// 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
description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment
---*/
assert.throws(SyntaxError, function() {
eval("//\u000D single line comment");
});