compile InfinityLiterals to 2e308

This commit is contained in:
Michael Ficarra 2016-03-05 08:35:26 -08:00
parent 8afb7cc95b
commit 585932cf5b
2 changed files with 2 additions and 2 deletions

View File

@ -561,7 +561,7 @@
} }
InfinityLiteral.prototype.compileNode = function() { InfinityLiteral.prototype.compileNode = function() {
return [this.makeCode('Infinity')]; return [this.makeCode('2e308')];
}; };
return InfinityLiteral; return InfinityLiteral;

View File

@ -402,7 +402,7 @@ exports.NumberLiteral = class NumberLiteral extends Literal
exports.InfinityLiteral = class InfinityLiteral extends NumberLiteral exports.InfinityLiteral = class InfinityLiteral extends NumberLiteral
compileNode: -> compileNode: ->
[@makeCode 'Infinity'] [@makeCode '2e308']
exports.StringLiteral = class StringLiteral extends Literal exports.StringLiteral = class StringLiteral extends Literal