Allow methods to be called on Infinity

This commit is contained in:
Tim Schaub 2014-12-30 19:23:17 -07:00
parent 5538ec7bd8
commit 71936b0911
2 changed files with 5 additions and 1 deletions

View File

@ -1109,7 +1109,7 @@ function OutputStream(options) {
});
DEFPRINT(AST_Hole, noop);
DEFPRINT(AST_Infinity, function(self, output){
output.print("1/0");
output.print("(1/0)");
});
DEFPRINT(AST_NaN, function(self, output){
output.print("0/0");

View File

@ -0,0 +1,4 @@
infinity_to_string: {
input: { Infinity.toString() }
expect: { (1/0).toString() }
}