improve error handling

This commit is contained in:
dloverin committed 2013-08-01 21:05:09 -04:00
1 parent b41ad227c1
commit 794c5d1ad8
7 files changed
+46 -24

No files matched your search

@@ -677,6 +677,13 @@ define(function (require, exports, module) {
if (node.type === "SequenceExpression") {
node = node.expressions[0];
}
if (node.type === "BinaryExpression") {
if (node.left.type === "CallExpression") {
node = node.left;
} else if (node.right.type === "CallExpression") {
node = node.right;
}
}
if (node.type === "CallExpression") {
var args = node["arguments"],
i,