MCPcopy Create free account
hub / github.com/buke/quickjs-go / NewObject

Method NewObject

context.go:665–667  ·  view source on GitHub ↗

NewObject returns a new object value.

()

Source from the content-addressed store, hash-verified

663
664// NewObject returns a new object value.
665func (ctx *Context) NewObject() *Value {
666 return &Value{ctx: ctx, ref: C.JS_NewObject(ctx.ref)}
667}
668
669// NewProxy returns a new Proxy value backed by the given target and handler.
670func (ctx *Context) NewProxy(target, handler *Value) *Value {

Callers 15

TestContextBasicsFunction · 0.95
TestAtomWithObjectsFunction · 0.95
TestAtomEdgeCasesFunction · 0.95
ExampleFunction · 0.95
marshalMapMethod · 0.95
marshalStructMethod · 0.95
TestDeprecatedAtomAPIsFunction · 0.95
ObjectMethod · 0.95

Calls

no outgoing calls

Tested by 15

TestContextBasicsFunction · 0.76
TestAtomWithObjectsFunction · 0.76
TestAtomEdgeCasesFunction · 0.76
ExampleFunction · 0.76
TestDeprecatedAtomAPIsFunction · 0.76
TestValueBasicsFunction · 0.76