test262/test/language/comments/multi-line-asi-line-separator.js
Mike Pennisi 41110ab0d4 Correct tests for line terminators within comments
Four tests were documented as asserting the interpretation of line
terminators within multi-line comments, but the source code did not
actually demonstrate this condition.

Introduce new tests that demonstrate the intended functionality and
place them in the correct directory.
2018-11-07 10:12:59 -05:00

18 lines
543 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright (c) 2018 Mike Pennisi. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.4
esid: sec-comments
description: >
A multi-line comment containing a line separator should be considered a
LineTerminator
info: >
Comments behave like white space and are discarded except that, if a
MultiLineComment contains a line terminator code point, then the entire
comment is considered to be a LineTerminator for purposes of parsing by the
syntactic grammar.
---*/
''/**/''