MCPcopy Create free account
hub / github.com/dop251/goja / compileParameterPatternIdBinding

Method compileParameterPatternIdBinding

compiler_expr.go:1300–1304  ·  view source on GitHub ↗
(name unistring.String, offset int)

Source from the content-addressed store, hash-verified

1298}
1299
1300func (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
1306func (c *compiler) compileParameterPatternBinding(item ast.Expression) {
1307 c.createBindings(item, c.compileParameterPatternIdBinding)

Callers

nothing calls this directly

Calls 2

throwSyntaxErrorMethod · 0.95

Tested by

no test coverage detected