blob: b3325b7fdf148c9196e5fb9b112d24ab2e59c750 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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})();