tor-browser

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

property-list-followed-by-a-single-comma.js (555B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es6id: 13.3.3
      6 description: >
      7  The Binding Property List followed by a single comma is a valid syntax
      8 info: |
      9  Destructuring Binding Patterns - Syntax
     10 
     11  ObjectBindingPattern[Yield] :
     12    { }
     13    { BindingPropertyList[?Yield] }
     14    { BindingPropertyList[?Yield] , }
     15 
     16 features: [destructuring-binding]
     17 ---*/
     18 
     19 function fn1({x,}) {}
     20 
     21 function fn2({a: {p: q, }, }) {}
     22 
     23 function fn3({x,}) {}
     24 
     25 reportCompare(0, 0);