Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dop251/goja
/ functions
Functions
4,701 in github.com/dop251/goja
⨍
Functions
4,701
◇
Types & classes
735
↓ 11 callers
Function
setArrayValues
(a *arrayObject, values []Value)
builtin_array.go:26
↓ 11 callers
Function
testMapHashVal
(v1, v2 Value, expected bool, t *testing.T)
map_test.go:11
↓ 11 callers
Method
toPrimitiveNumber
()
object.go:890
↓ 10 callers
Method
Get
Get an object's property by name. This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to cat
value.go:806
↓ 10 callers
Method
Grow
(n int)
string_unicode.go:281
↓ 10 callers
Function
ParseFile
ParseFile parses the source code of a single JavaScript/ECMAScript source file and returns the corresponding ast.Program node. If fileSet == nil, Par
parser/parser.go:165
↓ 10 callers
Function
convertRegexpToUnicode
Convert any valid surrogate pairs in the form of \uXXXX\uXXXX to unicode characters
builtin_regexp.go:65
↓ 10 callers
Method
getError
()
builtin_error.go:226
↓ 10 callers
Method
getOwnProp
(p Value)
object.go:1441
↓ 10 callers
Method
getOwnPropIdx
(valueInt)
object.go:158
↓ 10 callers
Method
isFunction
()
compiler.go:890
↓ 10 callers
Method
newNativeConstructOnly
(v *Object, ctor func(args []Value, newTarget *Object) *Object, defaultProto *Object, name unistring.String, l
runtime.go:701
↓ 10 callers
Method
remove
(key Value)
map.go:70
↓ 10 callers
Method
toConstructor
(v Value)
builtin_reflect.go:9
↓ 10 callers
Function
unhex
(c byte)
builtin_global.go:209
↓ 9 callers
Method
Equals
(Value)
value.go:88
↓ 9 callers
Method
Interrupt
(v interface{})
vm.go:685
↓ 9 callers
Function
IsNull
IsNull returns true if the supplied Value is null.
runtime.go:2536
↓ 9 callers
Method
NewArray
(items ...interface{})
runtime.go:532
↓ 9 callers
Method
Position
(offset int)
file/file.go:139
↓ 9 callers
Method
WriteSubstring
(source String, start int, end int)
string_unicode.go:311
↓ 9 callers
Method
ascii
()
string_unicode.go:209
↓ 9 callers
Method
builtin_new
(construct *Object, args []Value)
runtime.go:904
↓ 9 callers
Method
compileFunctionLiteral
(v *ast.FunctionLiteral, isExpr bool)
compiler_expr.go:1744
↓ 9 callers
Method
defineOwnPropertySym
(name *Symbol, desc PropertyDescriptor, throw bool)
object.go:179
↓ 9 callers
Function
digitValue
(chr rune)
parser/lexer.go:46
↓ 9 callers
Method
emitLiteralValue
(v Value)
compiler.go:403
↓ 9 callers
Method
emitNamedOrConst
(expr compiledExpr, name unistring.String)
compiler_expr.go:3305
↓ 9 callers
Method
getNumberPrototype
()
builtin_number.go:227
↓ 9 callers
Method
getV
(v Value, p Value)
runtime.go:2692
↓ 9 callers
Method
leaveBlock
()
compiler.go:340
↓ 9 callers
Method
materialiseProto
()
object_template.go:82
↓ 9 callers
Method
needNew
(name string)
builtin_weakmap.go:125
↓ 9 callers
Method
newNativeFuncConstructProto
(v *Object, construct func(args []Value, proto *Object) *Object, name unistring.String, prototype, proto *Obje
runtime.go:807
↓ 9 callers
Method
newPrimitiveObject
(value Value, proto *Object, class string)
runtime.go:823
↓ 9 callers
Method
newTemplatedObject
(tmpl *objectTemplate, obj *Object)
object_template.go:65
↓ 9 callers
Function
newTypeError
(args ...interface{})
value.go:1176
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:134
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:183
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:228
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:283
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:330
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:381
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:432
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:483
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:549
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:605
↓ 9 callers
Method
ptr
(idx int)
typedarrays.go:669
↓ 9 callers
Method
setProto
(proto *Object, throw bool)
object.go:189
↓ 9 callers
Method
sourceOffset
(pc int)
compiler.go:460
↓ 9 callers
Function
testScriptWithTestLibX
(script string, expectedResult Value, t *testing.T)
compiler_test.go:241
↓ 9 callers
Method
toPrimitive
()
object.go:906
↓ 9 callers
Function
trueValIfPresent
(present bool)
object_gomap.go:65
↓ 9 callers
Function
unicodeStringFromRunes
(r []rune)
string_unicode.go:562
↓ 8 callers
Method
ExportType
()
value.go:91
↓ 8 callers
Function
IsInfinity
IsInfinity returns true if the supplied is (+/-)Infinity
runtime.go:2547
↓ 8 callers
Method
String
()
string_unicode.go:165
↓ 8 callers
Function
ToFlag
(b bool)
runtime.go:169
↓ 8 callers
Function
TransformRegExp
TransformRegExp transforms a JavaScript pattern into a Go "regexp" pattern. re2 (Go) cannot do backtracking, so the presence of a lookahead (?=) (?!
parser/regexp.go:61
↓ 8 callers
Method
_defineOwnProperty
(name unistring.String, existingValue Value, descr PropertyDescriptor, throw bool)
object.go:651
↓ 8 callers
Function
_intArg
(call FunctionCall, argNum int)
builtin_date.go:539
↓ 8 callers
Function
_norm
_norm returns nhi, nlo such that hi * base + lo == nhi * base + nlo 0 <= nlo < base
builtin_date.go:483
↓ 8 callers
Method
appendIndexesAndGroup
(index1, index2 int, name string)
regexp.go:76
↓ 8 callers
Method
checkHostObjectPropertyDescr
(name unistring.String, descr PropertyDescriptor, throw bool)
object_goreflect.go:353
↓ 8 callers
Method
checkIdentifierLName
(name unistring.String, offset int)
compiler.go:1329
↓ 8 callers
Method
createErrorPrototype
(name String, ctor *Object)
builtin_error.go:204
↓ 8 callers
Method
emitGet
()
compiler.go:136
↓ 8 callers
Function
escapeInvalidUtf16
convert any broken UTF-16 surrogate pairs to \uXXXX
builtin_regexp.go:130
↓ 8 callers
Method
findIdx
(idx uint32)
array_sparse.go:27
↓ 8 callers
Method
getStrWithOwnProp
(prop Value, name unistring.String, receiver Value)
object.go:324
↓ 8 callers
Method
getSyntaxError
()
builtin_error.go:266
↓ 8 callers
Method
invoke
(v Value, p unistring.String, args ...Value)
runtime.go:2958
↓ 8 callers
Function
isArray
(object *Object)
runtime.go:2861
↓ 8 callers
Method
isExtensible
()
object.go:191
↓ 8 callers
Function
ishex
(c byte)
builtin_global.go:197
↓ 8 callers
Method
iterateKeys
()
object.go:202
↓ 8 callers
Method
leaveScopeBlock
(enter *enterBlock)
compiler.go:326
↓ 8 callers
Method
lookupName
(name unistring.String)
compiler.go:478
↓ 8 callers
Method
newPromiseCapability
(c *Object)
builtin_promise.go:281
↓ 8 callers
Method
parseStatement
()
parser/statement.go:38
↓ 8 callers
Method
peek
()
parser/lexer.go:218
↓ 8 callers
Method
putIdx
(idx int, v Value, throw bool)
object_goslice.go:128
↓ 8 callers
Method
putTyped
(key *Object, typ reflect.Type, value interface{})
object.go:1706
↓ 8 callers
Method
reinterpretAsDestructBindingTarget
(item ast.Expression)
parser/expression.go:1639
↓ 8 callers
Method
reject
(reason Value)
builtin_promise.go:122
↓ 8 callers
Method
runTC39Tests
(name string)
tc39_test.go:783
↓ 8 callers
Method
setForeignIdx
(p valueInt, v, receiver Value, throw bool)
object.go:166
↓ 8 callers
Method
setForeignStr
(p unistring.String, v, receiver Value, throw bool)
object.go:165
↓ 8 callers
Method
setOwnSym
(p *Symbol, v Value, throw bool)
object.go:163
↓ 8 callers
Function
strToIntNum
Attempts to convert a string into a canonical integer. On success returns (number, true). If it was a canonical number, but not an integer returns (0,
runtime.go:3158
↓ 8 callers
Function
toBigInt
(value Value)
builtin_bigint.go:125
↓ 8 callers
Function
toPrimitiveNumber
(v Value)
vm.go:4477
↓ 8 callers
Method
try
(f func())
builtin_promise.go:393
↓ 8 callers
Method
typedArrayCreate
(ctor *Object, args ...Value)
builtin_typedarrays.go:1383
↓ 8 callers
Method
utf16Reader
()
string.go:65
↓ 8 callers
Method
wrapNativeConstruct
(c func(args []Value, proto *Object) *Object, ctorObj, defProto *Object)
runtime.go:979
↓ 8 callers
Method
writeASCII
(s string)
string_unicode.go:247
↓ 7 callers
Method
Grow
(n int)
string_unicode.go:138
↓ 7 callers
Method
Has
Has should return true if and only if the property exists.
object_dynamic.go:25
↓ 7 callers
Method
ToString
()
value.go:81
← previous
next →
201–300 of 4,701, ranked by callers