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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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", () => {
});
});
}
});
});