fix #951: lower object rest and spread for v8

This commit is contained in:
Evan Wallace
2021-03-11 11:05:38 -08:00
parent 4725dae1ef
commit b1a394b4b9
3 changed files with 11 additions and 3 deletions

View File

@@ -177,6 +177,13 @@ for (const test of [...es5.tests, ...es6.tests, ...stage4.tests, ...stage1to3.te
}
}
// Work around V8-specific issues
for (const v8 of ['chrome', 'edge', 'node']) {
// Always lower object rest and spread for V8-based JavaScript VMs because of
// a severe performance issue: https://bugs.chromium.org/p/v8/issues/detail?id=11536
delete versions.ObjectRestSpread[v8]
}
for (const feature in features) {
if (!features[feature].found) {
throw new Error(`Did not find ${feature}`)