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

Method throwSyntaxErrorf

compiler.go:1288–1296  ·  view source on GitHub ↗
(offset int, format string, args ...interface{})

Source from the content-addressed store, hash-verified

1286}
1287
1288func (c *compiler) throwSyntaxErrorf(offset int, format string, args ...interface{}) {
1289 panic(&CompilerSyntaxError{
1290 CompilerError: CompilerError{
1291 File: c.p.src,
1292 Offset: offset,
1293 Message: fmt.Sprintf(format, args...),
1294 },
1295 })
1296}
1297
1298func (c *compiler) isStrict(list []ast.Statement) *ast.StringLiteral {
1299 for _, st := range list {

Callers 15

compileMetaPropertyMethod · 0.95
emitObjectPatternMethod · 0.95
compileForIntoMethod · 0.95
findBreakBlockMethod · 0.95
checkVarConflictMethod · 0.95
compileVarBindingMethod · 0.95
compileLexicalBindingMethod · 0.95
createBindingsMethod · 0.95
assertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected