tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S7.8.5_A1.5_T2.js (860B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: prod-RegularExpressionBackslashSequence
      6 info: |
      7  RegularExpressionBackslashSequence ::
      8  \ RegularExpressionNonTerminator
      9 
     10  RegularExpressionNonTerminator ::
     11    SourceCharacter but not LineTerminator
     12 
     13 description: >
     14  A RegularExpressionBackslashSequence may not contain a <LF>, evaluated
     15 
     16 ---*/
     17 
     18 //CHECK#1
     19 try {
     20   eval("/\\\u000A/").source;
     21   throw new Test262Error('#1.1: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (eval("/\\\u000A/").source));
     22 }
     23 catch (e) {
     24  if ((e instanceof SyntaxError) !== true) {
     25     throw new Test262Error('#1.2: RegularExpressionFirstChar :: BackslashSequence :: \\Line Feed is incorrect. Actual: ' + (e));
     26  }
     27 }
     28 
     29 reportCompare(0, 0);