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

Method delete

object.go:1836–1842  ·  view source on GitHub ↗
(prop Value)

Source from the content-addressed store, hash-verified

1834}
1835
1836func (s *propNameSet) delete(prop Value) {
1837 if sym, ok := prop.(*Symbol); ok {
1838 delete(s.symbolProps, sym)
1839 } else {
1840 delete(s.stringProps, prop.string())
1841 }
1842}
1843
1844func (s *propNameSet) size() int {
1845 return len(s.stringProps) + len(s.symbolProps)

Callers 1

proxyOwnKeysMethod · 0.95

Calls 1

stringMethod · 0.65

Tested by

no test coverage detected