Fixes #657 - adds property name validation.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 20 Dec 2016 16:10:47 +0000 (17:10 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 20 Dec 2016 16:10:47 +0000 (17:10 +0100)
commit27a1097c3378a4158500ee9c0f4d966f0faa0b31
treebc5c3f282e735e9f3de170b6858d369fbfe22464
parent0db3fd3ae35d6f4d7df7dd4e297c0623f3afdff6
Fixes #657 - adds property name validation.

It's a bit relaxed matching but too strict one would do too much
harm with many false-positives.

Why:

* To prevent processing errors further down the optimization pipeline.
lib/optimizer/basic.js
test/module-test.js
test/optimizer/basic-test.js