mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-13 18:14:48 -05:00
Fix esDecorators evaluation test on Node 16+ (#53175)
This commit is contained in:
@@ -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", () => {
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user