From f154364c01603b0b8cfd0055951e8283f20fabd7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 1 Jul 2019 19:23:52 -0700 Subject: Bysyncify: Assertion improvements (#2193) Add assertions on stack overflow in all 4 Bysyncify API calls (previously only 2 did it). Also add a check that those assertions are hit. --- test/unit/test_bysyncify.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test/unit/test_bysyncify.py') diff --git a/test/unit/test_bysyncify.py b/test/unit/test_bysyncify.py index 8d5a780e8..407f3f7f9 100644 --- a/test/unit/test_bysyncify.py +++ b/test/unit/test_bysyncify.py @@ -10,6 +10,7 @@ class BysyncifyTest(BinaryenTestCase): print(args) run_process(WASM_OPT + args + [self.input_path('bysyncify-sleep.wast'), '--bysyncify', '-o', 'a.wasm']) run_process(WASM_OPT + args + [self.input_path('bysyncify-coroutine.wast'), '--bysyncify', '-o', 'b.wasm']) + run_process(WASM_OPT + args + [self.input_path('bysyncify-stackOverflow.wast'), '--bysyncify', '-o', 'c.wasm']) print(' file size: %d' % os.path.getsize('a.wasm')) run_process([NODEJS, self.input_path('bysyncify.js')]) -- cgit v1.2.3