Implement TDZ for ClassFieldDefinitionEvaluation (#6855)
* First implementation sketch and testcase * Use helper instead of inline IIFE's * minNodeVersion 6.0.0 * Hoisted visitor for subtraversal and fixed edgest case * Resolve merge conflicts in helpers * Remove duplicated helper from messing up Git
This commit is contained in:
committed by
Mateusz Burzyński
parent
cdf420d4d8
commit
6330a152ce
@@ -633,6 +633,12 @@ helpers.readOnlyError = defineHelper(`
|
||||
}
|
||||
`);
|
||||
|
||||
helpers.classNameTDZError = defineHelper(`
|
||||
export default function _classNameTDZError(name) {
|
||||
throw new Error("Class \\"" + name + "\\" cannot be referenced in computed property keys.");
|
||||
}
|
||||
`);
|
||||
|
||||
helpers.temporalUndefined = defineHelper(`
|
||||
export default {};
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user