SameValueZero returns true if two values are the same according to JS SameValueZero.
(other *Value)
| 99 | |
| 100 | // SameValueZero returns true if two values are the same according to JS SameValueZero. |
| 101 | func (v *Value) SameValueZero(other *Value) bool { |
| 102 | if !sameContext(v, other) { |
| 103 | return false |
| 104 | } |
| 105 | return bool(C.JS_IsSameValueZero(v.ctx.ref, v.ref, other.ref)) |
| 106 | } |
| 107 | |
| 108 | // Free the value. |
| 109 | func (v *Value) Free() { |