fix top-level directives in compress tests (#1615)

`input` and `expect` are parsed as `AST_BlockStatement` which does not support `AST_Directive` by default.

Emulate that by transforming preceding `AST_SimpleStatement`s of `AST_String` into `AST_Directive`.
This commit is contained in:
Alex Lam S.L
2017-03-18 01:56:15 +08:00
committed by GitHub
parent b7c112eefe
commit fb092839c2
3 changed files with 29 additions and 20 deletions

View File

@@ -49,4 +49,3 @@ mangle_keep_fnames_true: {
}
}
}