function extract_identifiers(pattern) {
	return unwrap_pattern(pattern, []).filter((node) => node.type === 'Identifier');
}
Extracts all identifiers from a pattern.
@param {ESTree.Pattern} pattern
@returns {ESTree.Identifier[]}