tor-browser

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

S15.10.2.8_A1_T5.js (805B)


      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 info: |
      6    The form (?= Disjunction ) specifies a zero-width positive lookahead.
      7    In order for it to succeed, the pattern inside Disjunction must match at the current position, but the current position is not advanced before matching the sequel.
      8    If Disjunction can match at the current position in several ways, only the first one is tried
      9 es5id: 15.10.2.8_A1_T5
     10 description: >
     11    Execute /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript
     12    engine") and check results
     13 ---*/
     14 
     15 var __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine");
     16 
     17 assert(!__executed, 'The value of !__executed is expected to be true');
     18 
     19 reportCompare(0, 0);