56626f302d
This brings the BytecodeGenerator in line with FullCodeGenerator, now that more requests for hole checks are flowing through BuildVariableAssignment. BUG=chromium:658528 Review-Url: https://codereview.chromium.org/2447783002 Cr-Commit-Position: refs/heads/master@{#40557}
11 lines
252 B
JavaScript
11 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.
|
|
|
|
function f() {
|
|
eval("var x = 1");
|
|
const x = 2;
|
|
}
|
|
|
|
assertThrows(f, SyntaxError);
|