Add test for #269.

This commit is contained in:
강동윤 2019-02-22 15:55:04 +09:00
parent a785ecc960
commit 7dcb2e34af

View File

@ -1212,4 +1212,18 @@ export default function waitUntil(callback, options = {}) {
}, },
); );
} }
#[test]
fn issue_269() {
test_parser(
";(function() {})(window, window.lib || (window.lib = {}))",
Default::default(),
|p| {
p.parse_module().map_err(|mut e| {
e.emit();
()
})
},
);
}
} }