77cbe27689
This patch just checks for a stack overflow and returns failure from the cases which Clusterfuzz found. However, there may be more locations in the parser which need similar treatment. R=caitpotter88@gmail.com,neis BUG=v8:4483,chromium:624300 Review-Url: https://codereview.chromium.org/2135503002 Cr-Commit-Position: refs/heads/master@{#37655}
14 lines
293 B
JavaScript
14 lines
293 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: --harmony-async-await
|
|
|
|
(function f() {
|
|
try {
|
|
f();
|
|
} catch (e) {
|
|
(async() => await 1).length;
|
|
}
|
|
})();
|