workaround pure_getters=true when dropping unused assignments (#2939)

fixes #2938
This commit is contained in:
Alex Lam S.L
2018-02-20 17:38:40 +08:00
committed by GitHub
parent 70474310f3
commit 39a907bde3
3 changed files with 57 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ describe("test/jetstream.js", function() {
this.timeout(20 * 60 * 1000);
[
"-mc",
"-mc keep_fargs=false,passes=3,unsafe,unsafe_comps,unsafe_math,unsafe_proto",
"-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto",
].forEach(function(options) {
it("Should pass with options " + options, function(done) {
var args = options.split(/ /);