mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* fix: LVal coverage update - add optional member expression to LVal - add member expression to PatternLike * breaking: remove TSParameterProperty from LVal * add FunctionParameter alias * fix: handle TSParameterProperty in do expr transform * fix Babel 8 typings
9 lines
156 B
TypeScript
9 lines
156 B
TypeScript
class C {
|
|
constructor(readonly arg = do { effects.push(1); value }) {}
|
|
}
|
|
|
|
var value = { key: 1 }
|
|
var effects = [];
|
|
new C();
|
|
expect(effects).toEqual([1]);
|