Private Properties phase 1 (#7666)

* Private Properties phase 1

Co-authored-by: CodingItWrong

* Private fields are optional

* Docs update
This commit is contained in:
Justin Ridgewell
2018-04-05 11:17:34 +01:00
committed by GitHub
parent 01f4c2368e
commit 43040a4181
21 changed files with 138 additions and 23 deletions

View File

@@ -46,7 +46,7 @@ const memberExpressionOptimisationVisitor = {
path.skip();
},
"Function|ClassProperty": function(path, state) {
Function(path, state) {
// Detect whether any reference to rest is contained in nested functions to
// determine if deopt is necessary.
const oldNoOptimise = state.noOptimise;