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

Method materialisePropNames

object_template.go:136–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136func (o *templatedObject) materialisePropNames() {
137 if o.propNames == nil {
138 o.propNames = append(([]unistring.String)(nil), o.tmpl.propNames...)
139 }
140}
141
142func (o *templatedObject) setOwnStr(p unistring.String, v Value, throw bool) bool {
143 existing := o.getOwnPropStr(p) // materialise property (in case it's an accessor)

Callers 6

setOwnStrMethod · 0.95
defineOwnPropertyStrMethod · 0.95
deleteStrMethod · 0.95
materialisePropsMethod · 0.95
stringKeysMethod · 0.95
setLengthMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected