mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fix esDecorators evaluation test on Node 16+ (#53175)
This commit is contained in:
parent
cfd550e397
commit
377fe1f34f
@ -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", () => {
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user