Fix evaluating the typeof an arrow function. Using evaluate on used to cause a crash.

This commit is contained in:
Fábio Santos
2015-08-14 22:05:42 +01:00
parent 56c0b834d6
commit dcce4e5c66
2 changed files with 15 additions and 1 deletions

View File

@@ -36,6 +36,16 @@ regression_arrow_functions_and_hoist: {
expect_exact: "a=>b;"
}
typeof_arrow_functions: {
options = {
evaluate: true
}
input: {
typeof (x) => null;
}
expect_exact: "\"function\";"
}
destructuring_arguments: {
input: {
(function ( a ) { });