(other Value)
| 418 | } |
| 419 | |
| 420 | func (s unicodeString) Equals(other Value) bool { |
| 421 | if s.StrictEquals(other) { |
| 422 | return true |
| 423 | } |
| 424 | |
| 425 | if o, ok := other.(*Object); ok { |
| 426 | return s.Equals(o.toPrimitive()) |
| 427 | } |
| 428 | return false |
| 429 | } |
| 430 | |
| 431 | func (s unicodeString) StrictEquals(other Value) bool { |
| 432 | if otherStr, ok := other.(unicodeString); ok { |
nothing calls this directly
no test coverage detected