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

Method StrictEquals

string_unicode.go:431–443  ·  view source on GitHub ↗
(other Value)

Source from the content-addressed store, hash-verified

429}
430
431func (s unicodeString) StrictEquals(other Value) bool {
432 if otherStr, ok := other.(unicodeString); ok {
433 return s.equals(otherStr)
434 }
435 if otherStr, ok := other.(*importedString); ok {
436 otherStr.ensureScanned()
437 if otherStr.u != nil {
438 return s.equals(otherStr.u)
439 }
440 }
441
442 return false
443}
444
445func (s unicodeString) baseObject(r *Runtime) *Object {
446 ss := r.getStringSingleton()

Callers 2

SameAsMethod · 0.95
EqualsMethod · 0.95

Calls 2

equalsMethod · 0.95
ensureScannedMethod · 0.80

Tested by

no test coverage detected