(mode, x string)
| 664 | } |
| 665 | |
| 666 | func (l *State) checkMode(mode, x string) { |
| 667 | if mode != "" && !strings.Contains(mode, x[:1]) { |
| 668 | l.push(fmt.Sprintf("attempt to load a %s chunk (mode is '%s')", x, mode)) |
| 669 | l.throw(SyntaxError) |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | func protectedParser(l *State, r io.Reader, name, chunkMode string) error { |
| 674 | l.nonYieldableCallCount++ |
no test coverage detected