mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
Add test for #269.
This commit is contained in:
parent
a785ecc960
commit
7dcb2e34af
@ -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();
|
||||||
|
()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user