MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / set

Method set

www/js/_hyperscript-max.js:4519–4522  ·  view source on GitHub ↗
(ctx, lhs, value)

Source from the content-addressed store, hash-verified

4517 return { root: this.root, index: this.firstIndex };
4518 }
4519 set(ctx, lhs, value) {
4520 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4521 lhs.root[lhs.index] = value;
4522 }
4523 delete(ctx, lhs) {
4524 if (this.andBefore || this.andAfter) {
4525 throw new Error("Cannot remove a slice - use a single index");

Callers

nothing calls this directly

Calls 1

nullCheckMethod · 0.45

Tested by

no test coverage detected