4a4f7175df
For variables introduced as part of a catch pattern, we used to set their "initializer position" to the beginning of the pattern. This lead to full-codegen eliminating crucial hole checks when reading such variables inside the pattern itself. R=adamk@chromium.org, littledan@chromium.org BUG=v8:5178 Review-Url: https://codereview.chromium.org/2123953002 Cr-Commit-Position: refs/heads/master@{#37569}
8 lines
252 B
JavaScript
8 lines
252 B
JavaScript
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
assertThrows(() => {
|
|
try { throw {} } catch({a=b, b}) { a+b }
|
|
}, ReferenceError);
|