(name unistring.String, offset int)
| 1298 | } |
| 1299 | |
| 1300 | func (c *compiler) compileParameterPatternIdBinding(name unistring.String, offset int) { |
| 1301 | if _, unique := c.compileParameterBindingIdentifier(name, offset); !unique { |
| 1302 | c.throwSyntaxError(offset, "Duplicate parameter name not allowed in this context") |
| 1303 | } |
| 1304 | } |
| 1305 | |
| 1306 | func (c *compiler) compileParameterPatternBinding(item ast.Expression) { |
| 1307 | c.createBindings(item, c.compileParameterPatternIdBinding) |
nothing calls this directly
no test coverage detected