Fix esDecorators evaluation test on Node 16+ (#53175)

This commit is contained in:
Jake Bailey
2023-03-16 10:32:28 -07:00
committed by GitHub
parent cfd550e397
commit 377fe1f34f

View File

@@ -1863,8 +1863,8 @@ describe("unittests:: evaluation:: esDecorators", () => {
});
});
const nodeVersion = ts.Version.tryParse(process.version);
const supportsClassStaticBlock = nodeVersion && nodeVersion.major >= 16;
const nodeVersion = new ts.Version(process.versions.node);
const supportsClassStaticBlock = nodeVersion.major >= 16;
const targets = [
// NOTE: Class static blocks weren't supported in Node v14
@@ -2443,4 +2443,4 @@ describe("unittests:: evaluation:: esDecorators", () => {
});
});
}
});
});