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

Method Set

object_dynamic.go:23–23  ·  view source on GitHub ↗

Set a property value for the key. Return true if success, false otherwise.

(key string, val Value)

Source from the content-addressed store, hash-verified

21 Get(key string) Value
22 // Set a property value for the key. Return true if success, false otherwise.
23 Set(key string, val Value) bool
24 // Has should return true if and only if the property exists.
25 Has(key string) bool
26 // Delete the property for the key. Returns true on success (note, that includes missing property).

Callers

nothing calls this directly

Implementers 2

testDynObjectobject_dynamic_test.go
testSharedDynObjectobject_dynamic_test.go

Calls

no outgoing calls

Tested by

no test coverage detected