tor-browser

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

mongolian-vowel-separator-eval.js (617B)


      1 // Copyright (C) 2016 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-white-space
      6 description: >
      7  Mongolian Vowel Separator is not recognized as white space (eval code).
      8 info: |
      9  11.2 White Space
     10 
     11  WhiteSpace ::
     12    <TAB>
     13    <VT>
     14    <FF>
     15    <SP>
     16    <NBSP>
     17    <ZWNBSP>
     18    <USP>
     19  <USP> ::
     20    Other category “Zs” code points
     21 
     22  General Category of U+180E is “Cf” (Format).
     23 features: [u180e]
     24 ---*/
     25 
     26 // U+180E between "var" and "foo".
     27 assert.throws(SyntaxError, function() {
     28  eval("var\u180Efoo;");
     29 });
     30 
     31 reportCompare(0, 0);