2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2017-10-16 18:46:28 +02:00
|
|
|
esid: prod-RegularExpressionNonTerminator
|
|
|
|
info: |
|
|
|
|
RegularExpressionBody ::
|
|
|
|
RegularExpressionFirstChar RegularExpressionChars
|
|
|
|
|
|
|
|
RegularExpressionChars ::
|
|
|
|
[empty]
|
|
|
|
RegularExpressionChars RegularExpressionChar
|
|
|
|
|
|
|
|
RegularExpressionFirstChar ::
|
|
|
|
RegularExpressionNonTerminator but not one of * or \ or / or [
|
|
|
|
|
|
|
|
RegularExpressionNonTerminator ::
|
|
|
|
SourceCharacter but not LineTerminator
|
|
|
|
|
|
|
|
description: >
|
|
|
|
A regular expression may not contain a <PS> as a SourceCharacter, evaluated
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
try {
|
|
|
|
eval("/s\u2029/").source;
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#1.1: RegularExpressionChar :: Paragraph separator is incorrect. Actual: ' + (eval("/s\u2029/").source));
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
if ((e instanceof SyntaxError) !== true) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#1.2: RegularExpressionChar :: Paragraph separator is incorrect. Actual: ' + (e));
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
2014-07-22 01:09:02 +02:00
|
|
|
}
|