Use boolean instead of bool, since the latter is not a WebIDL type