tor-browser

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

member-expr-ident-name-default-escaped-ext.js (639B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/identifier-names/default-escaped-ext.case
      3 // - src/identifier-names/default/member-expr.template
      4 /*---
      5 description: default is a valid identifier name, using extended escape (MemberExpression IdentifierName)
      6 esid: prod-PropertyDefinition
      7 flags: [generated]
      8 info: |
      9    MemberExpression:
     10      ...
     11      MemberExpression . IdentifierName
     12 
     13    Reserved Words
     14 
     15    A reserved word is an IdentifierName that cannot be used as an Identifier.
     16 ---*/
     17 
     18 var obj = {};
     19 
     20 obj.def\u{61}ult = 42;
     21 
     22 assert.sameValue(obj['default'], 42, 'property exists');
     23 
     24 reportCompare(0, 0);