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

Method New

value.go:438–440  ·  view source on GitHub ↗

New calls the constructor with the given arguments.

(args ...*Value)

Source from the content-addressed store, hash-verified

436
437// New calls the constructor with the given arguments.
438func (v *Value) New(args ...*Value) *Value {
439 return v.CallConstructor(args...)
440}
441
442// CallConstructor calls the constructor with the given arguments.
443// SCHEME C: For class instances, use this method to create instances.

Callers 15

validateClassBuilderFunction · 0.80
TestContextModulesFunction · 0.80
TestContextErrorHandlingFunction · 0.80
TestContextAsyncFunction · 0.80
TestContextPromiseFunction · 0.80
TestContextAsyncFunctionFunction · 0.80
TestDeprecatedAPIsFunction · 0.80
ToByteArrayMethod · 0.80
ToNumberMethod · 0.80
ToIndexMethod · 0.80
ToBigInt64Method · 0.80
ToBigUint64Method · 0.80

Calls 1

CallConstructorMethod · 0.95

Tested by 15

TestContextModulesFunction · 0.64
TestContextErrorHandlingFunction · 0.64
TestContextAsyncFunction · 0.64
TestContextPromiseFunction · 0.64
TestContextAsyncFunctionFunction · 0.64
TestDeprecatedAPIsFunction · 0.64
MarshalJSMethod · 0.64
UnmarshalJSMethod · 0.64
TestMarshalBasicTypesFunction · 0.64
TestTypedArraysFunction · 0.64