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

Method lastIndex

string_imported.go:280–286  ·  view source on GitHub ↗
(v String, pos int)

Source from the content-addressed store, hash-verified

278}
279
280func (i *importedString) lastIndex(v String, pos int) int {
281 i.ensureScanned()
282 if i.u != nil {
283 return i.u.lastIndex(v, pos)
284 }
285 return asciiString(i.s).lastIndex(v, pos)
286}
287
288func (i *importedString) toLower() String {
289 i.ensureScanned()

Callers

nothing calls this directly

Calls 3

ensureScannedMethod · 0.95
asciiStringTypeAlias · 0.85
lastIndexMethod · 0.65

Tested by

no test coverage detected