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

Method GetSymbol

value.go:813–815  ·  view source on GitHub ↗

GetSymbol returns the value of a symbol property. Use one of the Sym* values for well-known symbols (such as SymIterator, SymToStringTag, etc...). This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to catch these.

(sym *Symbol)

Source from the content-addressed store, hash-verified

811// symbols (such as SymIterator, SymToStringTag, etc...).
812// This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to catch these.
813func (o *Object) GetSymbol(sym *Symbol) Value {
814 return o.self.getSym(sym, nil)
815}
816
817// Keys returns a list of Object's enumerable keys.
818// This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to catch these.

Callers 2

Calls 1

getSymMethod · 0.65

Tested by 2