mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
compile InfinityLiterals to 2e308
This commit is contained in:
@@ -561,7 +561,7 @@
|
||||
}
|
||||
|
||||
InfinityLiteral.prototype.compileNode = function() {
|
||||
return [this.makeCode('Infinity')];
|
||||
return [this.makeCode('2e308')];
|
||||
};
|
||||
|
||||
return InfinityLiteral;
|
||||
|
||||
@@ -402,7 +402,7 @@ exports.NumberLiteral = class NumberLiteral extends Literal
|
||||
|
||||
exports.InfinityLiteral = class InfinityLiteral extends NumberLiteral
|
||||
compileNode: ->
|
||||
[@makeCode 'Infinity']
|
||||
[@makeCode '2e308']
|
||||
|
||||
exports.StringLiteral = class StringLiteral extends Literal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user