Don't change sequences that influence lexical binding in calls

Fixes #782
This commit is contained in:
Richard van Velzen
2015-08-25 10:53:35 +02:00
parent 6c8db6eae1
commit e3bd223dac
2 changed files with 28 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
remove_redundant_sequence_items: {
options = { side_effects: true };
input: {
(0, 1, logThis)();
(0, 1, _decorators.logThis)();
}
expect: {
(0, logThis)();
(0, _decorators.logThis)();
}
}
dont_remove_lexical_binding_sequence: {
options = { side_effects: true };
input: {
(0, logThis)();
(0, _decorators.logThis)();
}
expect: {
(0, logThis)();
(0, _decorators.logThis)();
}
}