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)
| 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. |
| 813 | func (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. |