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-RegularExpressionBackslashSequence
|
|
|
|
info: |
|
|
|
|
RegularExpressionBackslashSequence ::
|
|
|
|
\ RegularExpressionNonTerminator
|
|
|
|
|
|
|
|
RegularExpressionNonTerminator ::
|
|
|
|
SourceCharacter but not LineTerminator
|
|
|
|
|
|
|
|
description: >
|
|
|
|
A RegularExpressionBackslashSequence may not contain a <LF>, evaluated
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
2017-10-16 18:46:28 +02:00
|
|
|
try {
|
|
|
|
eval("/\\\u000A/").source;
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (eval("/\\\u000A/").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: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e));
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
2014-07-22 01:09:02 +02:00
|
|
|
}
|