(name)
| 208 | const identifierRegex = /^[A-Za-z_][A-Za-z0-9_]*$/; |
| 209 | |
| 210 | function validateIdentifier(name) { |
| 211 | if (typeof name !== 'string' || !identifierRegex.test(name)) { |
| 212 | throw new Error(`Invalid protobuf identifier: ${JSON.stringify(name)}`); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | function buildContext(proto, parent, mapEntryField) { |
| 217 | const obj = Object.create(parent); |
no outgoing calls
no test coverage detected
searching dependent graphs…