rpython,rust,swift4,ts: fix empty list handling.
authorJoel Martin <github@martintribe.org>
Wed, 8 May 2019 04:38:07 +0000 (23:38 -0500)
committerJoel Martin <github@martintribe.org>
Tue, 7 May 2019 21:43:12 +0000 (16:43 -0500)
commit90ca848565346ec9799d3ffebe7695692b58a6f1
tree70ff613196cf13d2b69814802905acecc8b9619f
parentd08bb1b770fb3b693e3e8baf3767a9e3ceae646a
rpython,rust,swift4,ts: fix empty list handling.

In these implementations there is no empty list check before
macroexpansion and so empty lists from step8 onwards produce a crash
or other misbehavior.

Also, add a test to step8 to test empty list again (first time it's
tested is in step2).
17 files changed:
rpython/step8_macros.py
rpython/step9_try.py
rpython/stepA_mal.py
rust/step8_macros.rs
rust/step9_try.rs
rust/stepA_mal.rs
swift4/Sources/step4_if_fn_do/main.swift
swift4/Sources/step5_tco/main.swift
swift4/Sources/step6_file/main.swift
swift4/Sources/step7_quote/main.swift
swift4/Sources/step8_macros/main.swift
swift4/Sources/step9_try/main.swift
swift4/Sources/stepA_mal/main.swift
tests/step8_macros.mal
ts/step8_macros.ts
ts/step9_try.ts
ts/stepA_mal.ts