SameValue returns true if two values are the same according to JS SameValue.
(other *Value)
| 91 | |
| 92 | // SameValue returns true if two values are the same according to JS SameValue. |
| 93 | func (v *Value) SameValue(other *Value) bool { |
| 94 | if !sameContext(v, other) { |
| 95 | return false |
| 96 | } |
| 97 | return bool(C.JS_IsSameValue(v.ctx.ref, v.ref, other.ref)) |
| 98 | } |
| 99 | |
| 100 | // SameValueZero returns true if two values are the same according to JS SameValueZero. |
| 101 | func (v *Value) SameValueZero(other *Value) bool { |