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

Method throwSyntaxError

compiler.go:1278–1286  ·  view source on GitHub ↗
(offset int, msg string)

Source from the content-addressed store, hash-verified

1276}
1277
1278func (c *compiler) throwSyntaxError(offset int, msg string) {
1279 panic(&CompilerSyntaxError{
1280 CompilerError: CompilerError{
1281 File: c.p.src,
1282 Offset: offset,
1283 Message: msg,
1284 },
1285 })
1286}
1287
1288func (c *compiler) throwSyntaxErrorf(offset int, format string, args ...interface{}) {
1289 panic(&CompilerSyntaxError{

Callers 15

compileExpressionMethod · 0.95
checkSuperBaseMethod · 0.95
compileCalleeMethod · 0.95
compileNumberLiteralMethod · 0.95
compileTryStatementMethod · 0.95
compileForIntoMethod · 0.95
emitBlockExitCodeMethod · 0.95
emitLexicalAssignMethod · 0.95
compileWithStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected