930174c25c
The DCHECK added by https://chromium-review.googlesource.com/461827 was not true in case we failed to compile the function. BUG=chromium:708598 Change-Id: I6a542c3ac6281c0549396b4ff0af34ea44450006 Reviewed-on: https://chromium-review.googlesource.com/472826 Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/master@{#44513}
11 lines
398 B
JavaScript
11 lines
398 B
JavaScript
// Copyright 2017 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.
|
|
|
|
// Regression test for hitting a DCHECK; if we just get a syntax error, it's ok.
|
|
|
|
assertThrows(`function lazy_does_not_compile(x) {
|
|
break;
|
|
}
|
|
new lazy_does_not_compile();`, SyntaxError);
|