tor-browser

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

prop-dup-data-data.js (698B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    Refer 11.1.5; 
      7    The production
      8    PropertyNameAndValueList :  PropertyNameAndValueList , PropertyAssignment
      9    4. If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true
     10    a. This production is contained in strict code and IsDataDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true
     11 es5id: 11.1.5_4-4-a-2
     12 description: >
     13    Object literal - Duplicate data property name allowed if not in
     14    strict mode
     15 ---*/
     16 
     17 void {
     18  foo: 0,
     19  foo: 1
     20 };
     21 
     22 reportCompare(0, 0);