a7697bdcc7
Reland of https://crrev.com/bf2bbc8ba508ccd21edf3c08d2e4192c4764ae91 R=bmeurer@chromium.org TEST=mjsunit/regress/regress-crbug-498022 BUG=chromium:498022 LOG=N Review URL: https://codereview.chromium.org/1214483008 Cr-Commit-Position: refs/heads/master@{#29372}
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
// Copyright 2015 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: --debug-code --nouse-gvn
|
|
|
|
"use strict";
|
|
class Base {
|
|
}
|
|
class Derived extends Base {
|
|
constructor() {
|
|
eval();
|
|
}
|
|
}
|
|
assertThrows("new Derived()", ReferenceError);
|