fix reference check for shorthand properties

This commit is contained in:
Christopher Monsanto
2015-04-29 17:55:26 -04:00
parent d30415d74a
commit f44c93add2
4 changed files with 18 additions and 3 deletions

View File

@@ -14,9 +14,19 @@ var i = (function (_i) {
i = 5;
});
var j = function j() {
var j = (function (_j) {
function j() {
return _j.apply(this, arguments);
}
j.toString = function () {
return _j.toString();
};
return j;
})(function () {
var _ = 5;
j = _.j;
;
};
});

View File

@@ -0,0 +1,3 @@
{
"throws": "Reference to undeclared variable"
}