From 7dcb2e34affecfd5d305e956030abf458a981810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 22 Feb 2019 15:55:04 +0900 Subject: [PATCH] Add test for #269. --- ecmascript/parser/src/parser/stmt/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ecmascript/parser/src/parser/stmt/mod.rs b/ecmascript/parser/src/parser/stmt/mod.rs index c02baafb569..5feb0300d42 100644 --- a/ecmascript/parser/src/parser/stmt/mod.rs +++ b/ecmascript/parser/src/parser/stmt/mod.rs @@ -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(); + () + }) + }, + ); + } }