mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
one more step
This commit is contained in:
@@ -1226,12 +1226,7 @@
|
|||||||
// The map of conversions from CoffeeScript to JavaScript symbols.
|
// The map of conversions from CoffeeScript to JavaScript symbols.
|
||||||
OpNode.prototype.CONVERSIONS = {
|
OpNode.prototype.CONVERSIONS = {
|
||||||
'==': '===',
|
'==': '===',
|
||||||
'!=': '!==',
|
'!=': '!=='
|
||||||
'and': '&&',
|
|
||||||
'or': '||',
|
|
||||||
'is': '===',
|
|
||||||
'isnt': '!==',
|
|
||||||
'not': '!'
|
|
||||||
};
|
};
|
||||||
// The list of operators for which we perform
|
// The list of operators for which we perform
|
||||||
// [Python-style comparison chaining](http://docs.python.org/reference/expressions.html#notin).
|
// [Python-style comparison chaining](http://docs.python.org/reference/expressions.html#notin).
|
||||||
|
|||||||
@@ -909,13 +909,8 @@ exports.OpNode: class OpNode extends BaseNode
|
|||||||
|
|
||||||
# The map of conversions from CoffeeScript to JavaScript symbols.
|
# The map of conversions from CoffeeScript to JavaScript symbols.
|
||||||
CONVERSIONS: {
|
CONVERSIONS: {
|
||||||
'==': '==='
|
'==': '==='
|
||||||
'!=': '!=='
|
'!=': '!=='
|
||||||
'and': '&&'
|
|
||||||
'or': '||'
|
|
||||||
'is': '==='
|
|
||||||
'isnt': '!=='
|
|
||||||
'not': '!'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The list of operators for which we perform
|
# The list of operators for which we perform
|
||||||
|
|||||||
Reference in New Issue
Block a user