You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use estraverse look for a specific node and I return the promise.
I cannot throw reject on traverse complete without workarounds.
functionretrieveBemEntity(fileContent,offset){returnnewPromise(function(res,err){varast=parse.parseExpressionAt(fileContent.substr(offset));traverse.traverse(ast,{enter: function(node){varbemEntity=_onNode(node);if(bemEntity)res(bemEntity),this.break();}});setTimeout(()=>err('not found'),100);// todo add traverse.traverse on end handler});}
The text was updated successfully, but these errors were encountered:
a-x-
added a commit
to a-x-/estraverse
that referenced
this issue
Jul 4, 2016
I use
estraverse
look for a specific node and I return the promise.I cannot throw reject on traverse complete without workarounds.
The text was updated successfully, but these errors were encountered: