sameContext reports whether two values belong to the same live context.
(a *Value, b *Value)
| 67 | |
| 68 | // sameContext reports whether two values belong to the same live context. |
| 69 | func sameContext(a *Value, b *Value) bool { |
| 70 | if !sameContextRef(a, b) { |
| 71 | return false |
| 72 | } |
| 73 | return a.hasValidContext() && b.hasValidContext() |
| 74 | } |
| 75 | |
| 76 | // Equal returns true if two values are abstractly equal (JS == semantics). |
| 77 | func (v *Value) Equal(other *Value) bool { |