MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / set

Method set

www/js/_hyperscript.js:4451–4456  ·  view source on GitHub ↗
(ctx, lhs, value)

Source from the content-addressed store, hash-verified

4449 return { root: this.root };
4450 }
4451 set(ctx, lhs, value) {
4452 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4453 ctx.meta.runtime.implicitLoop(lhs.root, (elt) => {
4454 value == null ? elt.removeAttribute(this.attribute.name) : elt.setAttribute(this.attribute.name, value);
4455 });
4456 }
4457 };
4458 var ArrayIndex = class _ArrayIndex extends Expression {
4459 static grammarName = "arrayIndex";

Callers

nothing calls this directly

Calls 2

nullCheckMethod · 0.45
implicitLoopMethod · 0.45

Tested by

no test coverage detected