Nicolò Ribaudo
3d69dc9471
Add # to the private name in "write-only" errors ( #12713 )
2021-01-29 17:58:13 +01:00
Federico Ciardi
5a020b24b7
fix: throw error when accessing private method without a getter ( #12689 )
...
* fix: class private accessor without getter
* Provide default return if 'writeOnlyError' is not available
* Add warning for old `@babel/helpers`
* Add missing helper call
2021-01-26 11:16:47 -05:00
Ajay Poshak
b1923fd140
Add a check for privateMap's existence ( #11571 )
...
Co-authored-by: Ajay Poshak <ajay.poshak@bookmyshow.com>
2020-05-30 22:38:15 +02:00
Tim McClure
3e4889d649
Class Private Static Accessors ( #10217 )
...
* Remove error for static private accessors
* Private static accessors strict
* Add loose mode support
* Move `value` decl for early return
* Reuse getter/setter template
* Reuse getter/setter templates
* Use `buildUndefinedNode` in accessor templates
* Extract `isAccessor` variable
2019-09-06 18:08:10 +02:00
Tim McClure
f44b29522c
Remove transform-classes from priv method tests ( #9537 )
2019-02-18 19:57:29 +01:00
Tim McClure
e8de6fa5d4
Private Class Methods Stage 3: Private Accessors ( #9101 )
...
* Add accessor loose support
* Add private accessors spec support
* Fix private dupe name check
* Changes from code review
* Add duplicated names tests
* Add get/set-only tests
* Move accessors tests
* Split out updates tests
* Add helper change tests
* Update test output
* Update test options
2019-01-21 22:05:37 +01:00