MCPcopy Create free account
hub / github.com/dop251/goja / set

Method set

value.go:526–536  ·  view source on GitHub ↗
(this, v Value)

Source from the content-addressed store, hash-verified

524}
525
526func (p *valueProperty) set(this, v Value) {
527 if p.setterFunc == nil {
528 p.value = v
529 return
530 }
531 call, _ := p.setterFunc.self.assertCallable()
532 call(FunctionCall{
533 This: this,
534 Arguments: []Value{v},
535 })
536}
537
538func (p *valueProperty) SameAs(other Value) bool {
539 if otherProp, ok := other.(*valueProperty); ok {

Callers

nothing calls this directly

Calls 2

callTypeAlias · 0.85
assertCallableMethod · 0.65

Tested by

no test coverage detected