Fixed: When target was ’self’ in a message send expression the source map was showing the wrong variable.

This commit is contained in:
Martin Carlberg committed 2017-09-12 13:17:49 +02:00
1 parent c6aafac6c8
commit 8cf79590c5
1 file changed
+1 -1
+1 -1
View File
@@ -2391,7 +2391,7 @@ Identifier: function(node, st, c) {
st.addMaybeWarning(message);
}
}
if (generate) compiler.jsBuffer.concat(identifier, node, "self");
if (generate) compiler.jsBuffer.concat(identifier, node, identifier === "self" ? "self" : null);
},
// Use this when there should not be a look up to issue warnings or add 'self.' before ivars
IdentifierName: function(node, st, c) {