also visit ClassProperty's for rest param deopt check, fixes #T7311 (#3481)

This commit is contained in:
Jay Phelps
2016-05-13 14:18:14 -07:00
committed by Henry Zhu
parent dc1f40540d
commit 330071e59d
4 changed files with 22 additions and 2 deletions

View File

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