inline functions with directives more effectively (#3604)
This commit is contained in:
@@ -3568,3 +3568,29 @@ pr_3592_2: {
|
||||
}
|
||||
expect_stdout: "PASS"
|
||||
}
|
||||
|
||||
inline_use_strict: {
|
||||
options = {
|
||||
evaluate: true,
|
||||
inline: true,
|
||||
reduce_vars: true,
|
||||
sequences: true,
|
||||
side_effects: true,
|
||||
unused: true,
|
||||
}
|
||||
input: {
|
||||
console.log(function() {
|
||||
"use strict";
|
||||
return function() {
|
||||
"use strict";
|
||||
var a = "foo";
|
||||
a += "bar";
|
||||
return a;
|
||||
};
|
||||
}()());
|
||||
}
|
||||
expect: {
|
||||
console.log("foobar");
|
||||
}
|
||||
expect_stdout: "foobar"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user