bcde4e271e
This avoids generating different scopes on the two compilation passes, which results in various delirious side-effects. There's some cleanup to be done in lazy arrow function parsing, but I'd rather do that in a separate patch, with this one targeted at fixing the particular crash. BUG=chromium:572589 LOG=n Review URL: https://codereview.chromium.org/1575333004 Cr-Commit-Position: refs/heads/master@{#33311}
13 lines
346 B
JavaScript
13 lines
346 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.
|
|
//
|
|
// Flags: --allow-natives-syntax --no-lazy
|
|
// Flags: --harmony-destructuring-bind
|
|
|
|
"use strict";
|
|
eval();
|
|
var f = ({x}) => { };
|
|
%OptimizeFunctionOnNextCall(f);
|
|
assertThrows(f);
|