diff --git a/lib/coffee-script/nodes.js b/lib/coffee-script/nodes.js index fb1635fc..4c694e4e 100644 --- a/lib/coffee-script/nodes.js +++ b/lib/coffee-script/nodes.js @@ -561,7 +561,7 @@ } InfinityLiteral.prototype.compileNode = function() { - return [this.makeCode('Infinity')]; + return [this.makeCode('2e308')]; }; return InfinityLiteral; diff --git a/src/nodes.coffee b/src/nodes.coffee index 8796b72e..87819613 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -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