MCPcopy Create free account

hub / github.com/dop251/goja / functions

Functions4,701 in github.com/dop251/goja

↓ 460 callersFunctiontestScript
(script string, expectedResult Value, t *testing.T)
compiler_test.go:233
↓ 433 callersMethodemit
(instructions ...instruction)
compiler.go:1274
↓ 409 callersMethodArgument
(idx int)
object.go:258
↓ 363 callersMethodputStr
(name unistring.String, f templatePropFactory)
object_template.go:52
↓ 330 callersFunctionintToValue
(i int64)
vm.go:392
↓ 314 callersFunctionNew
New creates an instance of a Javascript runtime that can be used to run code. Multiple instances may be created and used simultaneously, however it is
runtime.go:1297
↓ 312 callersMethodNewTypeError
(args ...interface{})
runtime.go:540
↓ 306 callersMethodSet
Set an item at index idx. Note that idx may be any integer, negative or beyond the current length. The expected behaviour when it's beyond length is t
object_dynamic.go:57
↓ 268 callersMethodRunString
RunString executes the given string in the global context.
runtime.go:1397
↓ 252 callersMethodmethodProp
(f func(FunctionCall) Value, name unistring.String, nArgs int)
runtime.go:3205
↓ 233 callersMethodString
()
value.go:82
↓ 212 callersMethodtoObject
(v Value, args ...interface{})
runtime.go:2618
↓ 176 callersMethodgetStr
(p unistring.String, receiver Value)
object.go:153
↓ 144 callersMethodIdx0
()
ast/node.go:28
↓ 141 callersFunctionvalueProp
(value Value, writable, enumerable, configurable bool)
object.go:795
↓ 137 callersMethod_putProp
(name unistring.String, value Value, writable, enumerable, configurable bool)
object.go:208
↓ 133 callersMethodnewNativeFunc
(call func(FunctionCall) Value, name unistring.String, length int)
runtime.go:739
↓ 132 callersMethodtoString
()
value.go:79
↓ 121 callersMethodToObject
(*Runtime)
value.go:86
↓ 118 callersMethodWriteString
(s String)
string_unicode.go:213
↓ 117 callersFunctionis
(a, b interface{})
parser/testutil_test.go:43
↓ 114 callersMethodToValue
* ToValue converts a Go value into a JavaScript value of a most appropriate type. Structural types (such as structs, maps and slices) are wrapped so t
runtime.go:1790
↓ 110 callersMethodemitGetter
(putOnStack bool)
compiler_expr.go:13
↓ 106 callersFunctiontestScriptWithTestLib
(script string, expectedResult Value, t *testing.T)
compiler_test.go:237
↓ 103 callersMethodtypeErrorResult
(throw bool, args ...interface{})
runtime.go:461
↓ 102 callersMethodIdx1
The index of the first character belonging to the node
ast/node.go:29
↓ 98 callersMethodsetOwnStr
(p unistring.String, v Value, throw bool)
object.go:161
↓ 96 callersMethodToInteger
()
value.go:78
↓ 96 callersMethodpush
(v Value)
vm.go:891
↓ 94 callersMethodinit
(Value)
vm.go:120
↓ 93 callersMethodobjectproto_toString
(call FunctionCall)
builtin_object.go:458
↓ 91 callersMethodnext
()
parser/parser.go:222
↓ 86 callersMethodgetIdx
(p valueInt, receiver Value)
object.go:154
↓ 85 callersFunctionnilSafe
(v Value)
runtime.go:2854
↓ 81 callersMethodget
()
vm.go:118
↓ 76 callersMethodset
(Value)
vm.go:119
↓ 74 callersMethodexpect
(value token.Token)
parser/parser.go:257
↓ 73 callersMethodExportTo
ExportTo converts a JavaScript value into the specified Go value. The second parameter must be a non-nil pointer. Returns error if conversion is not p
runtime.go:2379
↓ 72 callersMethodstring
()
value.go:80
↓ 70 callersMethodread
()
parser/lexer.go:534
↓ 69 callersMethodToFloat
()
value.go:83
↓ 65 callersMethodGet
Get an item at index idx. Note that idx may be any integer, negative or beyond the current length.
object_dynamic.go:53
↓ 65 callersMethoderror
(place interface{}, msg string, msgValues ...interface{})
parser/error.go:72
↓ 62 callersFunctionfloatToValue
(f float64)
vm.go:409
↓ 60 callersMethodExport
()
value.go:90
↓ 59 callersMethodcompileExpression
(v ast.Expression)
compiler_expr.go:205
↓ 58 callersMethodaddSrcMap
()
compiler_expr.go:19
↓ 58 callersMethodensureNotDetached
(throw bool)
typedarrays.go:1073
↓ 58 callersFunctiontoLength
(v Value)
runtime.go:1202
↓ 57 callersMethodLength
()
string.go:60
↓ 56 callersFunctiontoIntStrict
(i int64)
runtime.go:1255
↓ 55 callersMethodSameAs
(Value)
value.go:87
↓ 54 callersFunctionnewStringValue
(s string)
string.go:134
↓ 53 callersMethodToBoolean
()
value.go:85
↓ 50 callersMethodw
()
destruct.go:29
↓ 48 callersMethodLen
Len returns the current array length.
object_dynamic.go:51
↓ 47 callersMethodWriteRune
(r rune)
string_unicode.go:255
↓ 47 callersMethodnewArrayValues
(values []Value)
builtin_array.go:68
↓ 47 callersMethodtoObject
(*Runtime)
proxy.go:146
↓ 46 callersMethodStrictEquals
(Value)
value.go:89
↓ 46 callersMethodToNumber
()
value.go:84
↓ 45 callersMethodassertCallable
()
object.go:185
↓ 44 callersMethodNewObject
()
runtime.go:523
↓ 40 callersMethodNew
New is an equivalent of the 'new' operator allowing to call it directly from Go.
runtime.go:2455
↓ 39 callersFunctionCompile
Compile creates an internal representation of the JavaScript code that can be later run using the Runtime.RunProgram() method. This representation is
runtime.go:1306
↓ 38 callersMethoddefineOwnPropertyStr
(name unistring.String, desc PropertyDescriptor, throw bool)
object.go:177
↓ 37 callersMethodgetRangeError
()
builtin_error.go:276
↓ 37 callersMethodthrowSyntaxError
(offset int, msg string)
compiler.go:1278
↓ 37 callersMethodtoCallable
(v Value)
runtime.go:994
↓ 36 callersMethodcheckObjectCoercible
(v Value)
runtime.go:1002
↓ 35 callersMethodRunProgram
RunProgram executes a pre-compiled (see Compile()) code in the global context.
runtime.go:1434
↓ 34 callersMethodassert
(cond bool, offset int, msg string, args ...interface{})
compiler.go:1368
↓ 33 callersMethodnewError
(typ *Object, msg string)
runtime.go:467
↓ 30 callersMethodgetOwnPropStr
(unistring.String)
object.go:157
↓ 30 callersMethodisSet
()
date.go:110
↓ 30 callersFunctionmarshal
(name string, children ...interface{})
parser/marshal_test.go:13
↓ 30 callersMethodslice
(idx0, idx1 file.Idx)
parser/parser.go:201
↓ 30 callersMethodthrow
Calls to this method must be made from the run() loop and must be the last statement before 'return'. In all other cases exceptions must be thrown usi
vm.go:848
↓ 30 callersFunctiontoNumeric
(value Value)
vm.go:426
↓ 29 callersMethodCharAt
(int)
string.go:59
↓ 29 callersMethodSet
(name string, value interface{})
value.go:904
↓ 28 callersMethodSubstring
(start, end int)
string.go:62
↓ 28 callersMethodtoIndex
(v Value)
runtime.go:1276
↓ 28 callersFunctiontoPropertyKey
(key Value)
runtime.go:2683
↓ 27 callersMethod_putSym
(s *Symbol, prop Value)
object.go:209
↓ 26 callersMethoddeleteStr
(name unistring.String, throw bool)
object.go:181
↓ 25 callersMethodError
()
runtime.go:396
↓ 25 callersMethodcheckHandler
()
proxy.go:294
↓ 25 callersFunctionstringValueFromRaw
(raw unistring.String)
string.go:141
↓ 24 callersMethodString
()
string_unicode.go:274
↓ 24 callersMethodtime
()
date.go:118
↓ 24 callersFunctiontoMethod
(v Value)
object.go:1407
↓ 23 callersFunctionMustCompile
MustCompile is like Compile but panics if the code cannot be compiled. It simplifies safe initialization of global variables holding compiled JavaScri
runtime.go:1319
↓ 23 callersMethodcreateIterResultObject
(value Value, done bool)
runtime.go:2821
↓ 23 callersMethodemitExpr
(expr compiledExpr, putOnStack bool)
compiler_expr.go:3285
↓ 23 callersMethodhasOwnPropertyStr
(unistring.String)
object.go:173
↓ 23 callersMethodread
()
parser/regexp.go:94
↓ 23 callersMethodsetOwnIdx
(p valueInt, v Value, throw bool)
object.go:162
↓ 22 callersMethodgetSym
(p *Symbol, receiver Value)
object.go:155
↓ 22 callersFunctionnewParser
(filename, src string)
parser/parser.go:126
next →1–100 of 4,701, ranked by callers