compiler: js: allow patterns and other properties in _js_type.js_validation