MCPcopy Create free account

hub / github.com/dop251/goja_nodejs / functions

Functions467 in github.com/dop251/goja_nodejs

↓ 70 callersMethodString
()
url/nodeurl.go:84
↓ 49 callersFunctionBytes
(r *goja.Runtime, v goja.Value)
buffer/buffer.go:49
↓ 46 callersFunctionrunTestCases
(t *testing.T, tcs []testCase)
buffer/buffer_test.go:345
↓ 37 callersMethodgetOffsetArgument
(call goja.FunctionCall, argIndex int, bb []byte, numBytes int64)
buffer/buffer.go:1023
↓ 36 callersMethodtoString
* Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `bu
buffer/types/buffer.d.ts:210
↓ 30 callersMethodEnable
Enable adds the require() function to the specified runtime.
require/module.go:108
↓ 24 callersFunctionNewEventLoop
(opts ...Option)
eventloop/eventloop.go:57
↓ 24 callersMethodRun
Run calls the specified function, starts the event loop and waits until there are no more delayed jobs to run after which it stops the loop and return
eventloop/eventloop.go:232
↓ 22 callersFunctiontestSetPort
(port, expected)
url/testdata/url_test.js:131
↓ 18 callersFunctionNewTypeError
(r *goja.Runtime, code string, params ...interface{})
errors/errors.go:48
↓ 16 callersFunctionRequiredIntegerArgument
(r *goja.Runtime, call goja.FunctionCall, name string, argIndex int)
goutil/argtypes.go:12
↓ 13 callersFunctiontoUrlSearchParams
(r *goja.Runtime, v goja.Value)
url/urlsearchparams.go:29
↓ 12 callersFunctionNewArgumentOutOfRangeError
(r *goja.Runtime, name string, v any)
errors/errors.go:95
↓ 12 callersMethoddefineURLAccessorProp
(p *goja.Object, name string, getter func(*nodeURL) interface{}, setter func(*nodeURL, goja.Value))
url/url.go:45
↓ 10 callersMethodStop
Stop the loop that was started with Start(). After this function returns there will be no more jobs executed by the loop. It is possible to call Start
eventloop/eventloop.go:262
↓ 9 callersFunctionNewRegistry
(opts ...Option)
require/module.go:60
↓ 9 callersMethodSetTimeout
SetTimeout schedules to run the specified function in the context of the loop as soon as possible after the specified timeout period. SetTimeout retur
eventloop/eventloop.go:163
↓ 9 callersMethodStart
Start the event loop in the background. The loop continues to run until Stop() is called. If the loop is already started it will panic.
eventloop/eventloop.go:240
↓ 8 callersFunctionRegisterCoreModule
RegisterCoreModule registers a nodejs core module. If the name does not start with "node:", the module will also be loadable as "node:<name>". Hence,
require/module.go:270
↓ 8 callersMethodRunOnLoop
RunOnLoop schedules to run the specified function in the context of the loop as soon as possible. The order of the runs is preserved (i.e. the functio
eventloop/eventloop.go:319
↓ 8 callersFunctiontestURLCtor
(str, expected)
url/testdata/url_test.js:5
↓ 7 callersFunctionRequire
(runtime *js.Runtime, name string)
require/module.go:239
↓ 7 callersFunctionWithLoader
WithLoader sets a function which will be called by the require() function in order to get a source code for a module at the given path. The same funct
require/module.go:80
↓ 7 callersMethodfromBytes
(data []byte)
buffer/buffer.go:256
↓ 7 callersFunctiontestURLCtorBase
(ref, base, expected, message)
url/testdata/url_test.js:9
↓ 6 callersMethodaddAuxJob
(fn func())
eventloop/eventloop.go:369
↓ 6 callersFunctionnewMissingArgsError
(r *goja.Runtime, msg string)
url/urlsearchparams.go:21
↓ 6 callersMethodresolvePath
(base, name string)
require/resolve.go:15
↓ 6 callersFunctiontestSetProtocol
(url, protocol, expected)
url/testdata/url_test.js:187
↓ 5 callersMethodEncode
([]byte)
buffer/buffer.go:151
↓ 5 callersMethodFormat
(b *bytes.Buffer, f string, args ...goja.Value)
util/module.go:42
↓ 5 callersFunctionNewArgumentNotNumberTypeError
(r *goja.Runtime, name string)
errors/errors.go:87
↓ 5 callersFunctionNewNotCorrectTypeError
(r *goja.Runtime, name, _type string)
errors/errors.go:91
↓ 5 callersMethodRequire
Require can be used to import modules from Go source (similar to JS require() function).
require/module.go:230
↓ 5 callersMethodSetInterval
SetInterval schedules to repeatedly run the specified function in the context of the loop as soon as possible after every specified timeout period. S
eventloop/eventloop.go:192
↓ 5 callersMethodloadModule
(path string)
require/resolve.go:211
↓ 5 callersMethodlog
(p func(string))
console/module.go:23
↓ 5 callersMethodnewInvalidURLError
(msg, input string)
url/url.go:39
↓ 5 callersFunctiontestCtor
(value, expected)
url/testdata/url_search_params.js:7
↓ 4 callersMethodClearInterval
ClearInterval cancels an Interval returned by SetInterval. ClearInterval is safe to call inside or outside the loop.
eventloop/eventloop.go:207
↓ 4 callersFunctionEnable
(runtime *goja.Runtime)
console/module.go:66
↓ 4 callersFunctionEnable
(runtime *goja.Runtime)
url/module.go:28
↓ 4 callersFunctionNew
(runtime *goja.Runtime)
util/module.go:96
↓ 4 callersMethodRegisterNativeModule
(name string, loader ModuleLoader)
require/module.go:120
↓ 4 callersFunctionRequiredBigIntArgument
(r *goja.Runtime, call goja.FunctionCall, name string, argIndex int)
goutil/argtypes.go:76
↓ 4 callersFunctionRequiredFloatArgument
(r *goja.Runtime, call goja.FunctionCall, name string, argIndex int)
goutil/argtypes.go:40
↓ 4 callersMethodgetVariableLengthReadArguments
(call goja.FunctionCall, bb []byte)
buffer/buffer.go:1033
↓ 4 callersMethodgetVariableLengthWriteArguments
(call goja.FunctionCall, bb []byte)
buffer/buffer.go:1037
↓ 4 callersFunctionishex
(c byte)
url/escape.go:31
↓ 4 callersMethodmarkUpdated
()
url/urlsearchparams.go:312
↓ 4 callersMethodparseURL
(s string, isBase bool)
url/url.go:167
↓ 4 callersMethodremoveJob
(job *job)
eventloop/eventloop.go:468
↓ 4 callersMethodstart
(loop *EventLoop, timeout time.Duration)
eventloop/eventloop.go:390
↓ 4 callersFunctiontoURL
(r *goja.Runtime, v goja.Value)
url/url.go:29
↓ 3 callersMethodClearTimeout
ClearTimeout cancels a Timer returned by SetTimeout if it has not run yet. ClearTimeout is safe to call inside or outside the loop.
eventloop/eventloop.go:178
↓ 3 callersMethodDecodeAppend
(string, []byte)
buffer/buffer.go:150
↓ 3 callersFunctionEnable
(runtime *goja.Runtime)
process/module.go:31
↓ 3 callersMethodError
(string)
console/module.go:20
↓ 3 callersFunctionNewRangeError
(r *goja.Runtime, code string, params ...interface{})
errors/errors.go:54
↓ 3 callersMethodTerminate
Terminate stops the loop and clears all active timeouts and intervals. After it returns there are no active timers or goroutines associated with the l
eventloop/eventloop.go:289
↓ 3 callersFunctionWithGlobalFolders
WithGlobalFolders appends the given paths to the registry's list of global folders to search if the requested module is not found elsewhere. By defau
require/module.go:101
↓ 3 callersMethoddomainToASCII
(domUnicode string)
url/url.go:403
↓ 3 callersMethoddomainToUnicode
(domASCII string)
url/url.go:411
↓ 3 callersFunctionexpandSlice
(b []byte, l int)
buffer/buffer.go:226
↓ 3 callersFunctionfilepathClean
(p string)
require/module.go:225
↓ 3 callersMethodfixURL
(u *url.URL)
url/url.go:207
↓ 3 callersMethodgetStringCodec
(enc goja.Value)
buffer/buffer.go:337
↓ 3 callersFunctionisSpecialProtocol
(protocol string)
url/url.go:127
↓ 3 callersMethodloadIndex
(modpath string)
require/resolve.go:131
↓ 3 callersFunctionmapFileSystemSourceLoader
(files map[string]string)
require/module_test.go:18
↓ 3 callersMethodnewURLSearchParamsIterator
(sp *urlSearchParams, typ urlSearchParamsIteratorType)
url/urlsearchparams.go:399
↓ 3 callersFunctionparseSearchQuery
(query string)
url/nodeurl.go:127
↓ 3 callersMethodrun
(inBackground bool)
eventloop/eventloop.go:335
↓ 3 callersMethodrunAux
()
eventloop/eventloop.go:323
↓ 3 callersMethodsetRunning
()
eventloop/eventloop.go:213
↓ 3 callersMethodsyncSearchParams
This methods ensures that the url.URL has the proper RawQuery based on the searchParam structs. If a change is made to the searchParams we need to kee
url/nodeurl.go:74
↓ 3 callersFunctionunescapeSearchParam
(s string)
url/escape.go:92
↓ 3 callersMethodwakeup
()
eventloop/eventloop.go:362
↓ 2 callersFunctionCoercedIntegerArgument
(call goja.FunctionCall, argIndex int, defaultValue int64, typeMismatchValue int64)
goutil/argtypes.go:52
↓ 2 callersMethodDecode
(s string)
buffer/buffer.go:152
↓ 2 callersFunctionEnableConsole
EnableConsole controls whether the "console" module is loaded into the runtime used by the loop. By default, loops are created with the "console" mod
eventloop/eventloop.go:94
↓ 2 callersMethodLog
(string)
console/module.go:18
↓ 2 callersFunctionOptionalIntegerArgument
(r *goja.Runtime, call goja.FunctionCall, name string, argIndex int, defaultValue int64)
goutil/argtypes.go:64
↓ 2 callersMethodWrapBytes
(data []byte)
buffer/buffer.go:135
↓ 2 callersMethod_from
(args ...goja.Value)
buffer/buffer.go:264
↓ 2 callersFunctionaddProps
(r *goja.Runtime, e *goja.Object, code string)
errors/errors.go:43
↓ 2 callersFunctionapi
(mod *goja.Object)
buffer/buffer.go:70
↓ 2 callersFunctioncleanPath
(p, proto string)
url/url.go:197
↓ 2 callersFunctionclearURLPort
(u *url.URL)
url/url.go:143
↓ 2 callersMethodcreateModuleObject
()
require/resolve.go:205
↓ 2 callersFunctioncreateVM
()
url/urlsearchparams_test.go:12
↓ 2 callersMethoddoCancel
()
eventloop/eventloop.go:494
↓ 2 callersMethodensureWithinFloat32Range
(value float64)
buffer/buffer.go:1055
↓ 2 callersMethodensureWithinInt16Range
(value int64)
buffer/buffer.go:1061
↓ 2 callersMethodensureWithinInt32Range
(value int64)
buffer/buffer.go:1067
↓ 2 callersMethodensureWithinIntRange
ensureWithinIntRange checks to make sure that value is within the integer range defined by the byteLength. Note that byteLength can be at most 6 bytes
buffer/buffer.go:1076
↓ 2 callersMethodensureWithinUInt16Range
(value int64)
buffer/buffer.go:1087
↓ 2 callersMethodensureWithinUInt32Range
(value int64)
buffer/buffer.go:1093
↓ 2 callersMethodensureWithinUIntRange
ensureWithinUIntRange checks to make sure that value is within the unsigned integer range defined by the byteLength. Note that byteLength can be at mo
buffer/buffer.go:1102
↓ 2 callersFunctionescape
(s string, table *[128]byte, spaceToPlus bool)
url/escape.go:55
next →1–100 of 467, ranked by callers