SetIdx sets the value of the property with the given index.
(idx int64, val *Value)
| 360 | |
| 361 | // SetIdx sets the value of the property with the given index. |
| 362 | func (v *Value) SetIdx(idx int64, val *Value) { |
| 363 | if !v.isAlive() || !val.belongsTo(v.ctx) { |
| 364 | return |
| 365 | } |
| 366 | C.JS_SetPropertyUint32(v.ctx.ref, v.ref, C.uint32_t(idx), val.ref) |
| 367 | } |
| 368 | |
| 369 | // Get returns the value of the property with the given name. |
| 370 | func (v *Value) Get(name string) *Value { |