fix: add expect_stdout to test output

This commit is contained in:
Fábio Santos 2018-02-27 15:24:29 +00:00
parent 0c53bc974f
commit b9dc8a1b5d

View File

@ -2033,25 +2033,40 @@ inline_true: {
issue_2842: {
options = {
inline: true,
toplevel: true,
side_effects: true,
reduce_vars: true,
reduce_funcs: true,
unused: true,
}
input: {
{
const data = function (data) {
(function() {
function inlinedFunction(data) {
return data[data[0]];
}([1, 2, 3]);
}
}
function testMinify() {
if (true) {
const data = inlinedFunction([1, 2, 3]);
console.log(data);
}
}
return testMinify();
})();
}
expect: {
{
const data = function (data) {
return data[data[0]];
}([1, 2, 3]);
}
(function () {
(function () {
if (true) {
const data = function (data) {
return data[data[0]];
}([1, 2, 3]);
console.log(data);
}
})();
})();
}
expect_stdout: [
"2"
]
}
use_before_init_in_loop: {