lib: support %undefined
0.2.2