Closed Bug 1524302 Opened 7 years ago Closed 4 years ago

[BinAST] Support LiteralInfinityExpression

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox67 --- affected

People

(Reporter: arai, Assigned: arai)

References

Details

testcase (in plain JS):

  1e309

We don't support LiteralInfinityExpression, and just throws error.
it should be simple to add support.

Priority: -- → P2

This might be a spec issue that we should use LiteralNumericExpression with Infinity double value instead.

I agree that we should turn this into an Infinity double. For Function.prototype.toString, since there is no canonical syntax for infinity, we'll need to print out something like 1e11111111111111 and -1e1111111111111.

Resolving BinAST bugs as Incomplete.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.