v8/test/mjsunit/regress/regress-904275.js
Toon Verwaest cdae5af896 [parser] Don't reindex function literals if there's a parser error
Bug: chromium:904275
Change-Id: I82712f70954246c16846f44bb9e8dc6e60e73d83
Reviewed-on: https://chromium-review.googlesource.com/c/1329686
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57421}
2018-11-12 09:16:50 +00:00

31 lines
871 B
JavaScript

// Copyright 2018 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 __isPropertyOfType(obj, name) {
Object.getOwnPropertyDescriptor(obj, name)
}
function __getProperties(obj, type) {
for (let name of Object.getOwnPropertyNames(obj)) {
__isPropertyOfType(obj, name);
}
}
function __getRandomProperty(obj) {
let properties = __getProperties(obj);
}
function __f_6776(__v_33890, __v_33891) {
var __v_33896 = __v_33891();
__getRandomProperty([])
}
(function __f_6777() {
var __v_33906 = async () => { };
__f_6776(1, () => __v_33906())
})();
(function __f_6822() {
try {
__f_6776(1, () => __f_6822());
} catch (e) {}
var __v_34059 = async (__v_34079 = () => eval()) => { };
delete __v_34059[__getRandomProperty(__v_34059)];
})();