Home | History | Annotate | Download | only in regress
      1 // Copyright 2016 the V8 project authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 
      6 (function(a = 0){
      7   var x;  // allocated in a var block, due to use of default parameter
      8   (function() { return !x })();
      9 })();
     10 
     11 (function({a}){
     12   var x;  // allocated in a var block, due to use of parameter destructuring
     13   (function() { return !x })();
     14 })({});
     15 
     16 (function(...a){
     17   var x;  // allocated in a var block, due to use of rest parameter
     18   (function() { return !x })();
     19 })();
     20