remove RegExp type from Literal
add test suite from esprima and modify for validation