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

Method set

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

nullCheckMethod · 0.45
implicitLoopMethod · 0.45

Tested by

no test coverage detected