mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
Fixed: When target was ’self’ in a message send expression the source map was showing the wrong variable.
This commit is contained in:
1 parent
c6aafac6c8
commit
8cf79590c5
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user