(node *ast.Node)
| 1370 | } |
| 1371 | |
| 1372 | func (b *Binder) checkStrictModeFunctionName(node *ast.Node) { |
| 1373 | if node.Flags&ast.NodeFlagsAmbient == 0 { |
| 1374 | // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1)) |
| 1375 | b.checkStrictModeEvalOrArguments(node, node.Name()) |
| 1376 | } |
| 1377 | } |
| 1378 | |
| 1379 | func (b *Binder) getStrictModeBlockScopeFunctionDeclarationMessage(node *ast.Node) *diagnostics.Message { |
| 1380 | // Provide specialized messages to help the user understand why we think they're in strict mode. |
no test coverage detected