test262/test/language/line-terminators/invalid-regexp-ps.js
Mike Pennisi 10fb23049e Refactor LT tests for parsers: RegExp
The tests for the parsing of line terminators were expressed using eval.
This made the tests more complex than necessary and also prevented the
tests from providing value to ECMAScript parsers.

Remove the use of eval and instead express the expectations with literal
source text.
2019-01-01 13:48:55 -05:00

18 lines
374 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) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-line-terminators
es5id: 7.3-8
description: >
7.3 - ES5 recognizes the character <PS> (\u2029) as terminating
regular expression literals
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
//