We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init
tc39/proposal-decorators#508
const append = (s: string) => (target, c) => { return { set(v) { target.set.call(this, `${v}${s}`); }, init(v) { return `${v}${s}`; } } } class C { @append("C") @append("B") accessor x = "a"; } const obj = new C(); obj.x = "z"; console.log(obj.x);
Logs
cBC zCB
Counter-intuitive - would have hoped that it was zCB for both.
zCB
Stage 3 2023 decorators allow you to provide a replacement get, set, and init method.
get
set
Feels like existing behavior might be right?
Depends on your interpretation. For
class X { @A @B x = C; }
Do you think of A(B(x = C)), or do you think of A(B(x)) = C
A(B(x = C))
A(B(x)) = C
We generally support making set and init consistent based on the argument that both of the = orders should be the same.
=
class C { @A @B x = 1; constructor() { x = 1; } }
#54218
isolatedModules
import
export
namespace
transpileModule
Program
verbatimModuleSyntax
#53879
checkExpression
checkExpressionCached
NodeLinks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Accessor With
init
tc39/proposal-decorators#508
Logs
Counter-intuitive - would have hoped that it was
zCB
for both.Stage 3 2023 decorators allow you to provide a replacement
get
,set
, andinit
method.Feels like existing behavior might be right?
Depends on your interpretation. For
Do you think of
A(B(x = C))
, or do you think ofA(B(x)) = C
We generally support making set and init consistent based on the argument that both of the
=
orders should be the same.Isolated Modules on Global/Script Files
#54218
isolatedModules
used to error on code that didn't have animport
orexport
namespace
s, but you can have script code"isolatedModules
, and this becomes more obvious if you use AMD as a module target.transpileModule
, you never got an error anyway?Program
we're not including.verbatimModuleSyntax
ifisolatedModules
wasn't on.isolatedModules
-driven emit changes.Reverting Deferral of Checking Assertion Expressions
#53879
checkExpression
just once - but increased time checking xstatecheckExpressionCached
- but that breaks our own codebase - but that resets CFA to avoid poisoning the cache.NodeLinks
.The text was updated successfully, but these errors were encountered: