Bug 632026 - Reflect.parse() constant folding test

This commit is contained in:
Dave Herman 2011-06-23 03:17:42 -04:00
parent 49581e5a08
commit d9346c17d1

View File

@ -332,6 +332,9 @@ assertExpr("({'x':1, 'y':2, 3:3})", objExpr([{ key: lit("x"), value: lit(1) },
// Bug 571617: eliminate constant-folding
assertExpr("2 + 3", binExpr("+", lit(2), lit(3)));
// Bug 632026: constant-folding
assertExpr("typeof(0?0:a)", unExpr("typeof", condExpr(lit(0), lit(0), ident("a"))));
// statements
assertStmt("throw 42", throwStmt(lit(42)));