Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mozilla/rhino
/ functions
Functions
18,679 in github.com/mozilla/rhino
⨍
Functions
18,679
◇
Types & classes
1,668
↓ 29 callers
Function
setTimeout
(f, t)
tests/testsrc/tests/js1_8_1/trace/trace-test.js:4628
↓ 29 callers
Method
visitExpression
(Node node, int contextFlags)
rhino/src/main/java/org/mozilla/javascript/CodeGenerator.java:564
↓ 29 callers
Method
writeLine
Write strings followed by a newline to the file. <p>Implements a JavaScript function that takes a variable number of arguments, converts each argumen
examples/src/main/java/File.java:210
↓ 28 callers
Method
assertPrintMsg
(String source, String expectedMsg)
tests/src/test/java/org/mozilla/javascript/tests/NativeConsoleTest.java:584
↓ 28 callers
Function
escape
(res)
benchmarks/testsrc/benchmarks/v8-benchmarks-v5/earley-boyer.js:2072
↓ 28 callers
Method
getBody
Returns function body. Normally a {@link Block}, but can be a plain {@link AstNode} if it's a function closure. @return the body. Can be {@code null}
rhino/src/main/java/org/mozilla/javascript/ast/FunctionNode.java:224
↓ 28 callers
Method
getNodeEnd
(AstNode n)
rhino/src/main/java/org/mozilla/javascript/Parser.java:395
↓ 28 callers
Method
isStrictMode
()
rhino/src/main/java/org/mozilla/javascript/Context.java:2910
↓ 28 callers
Method
iterator
Returns an {@link java.util.Iterator} over the node's children.
rhino/src/main/java/org/mozilla/javascript/Node.java:378
↓ 28 callers
Method
lineno
(int lineno)
rhino/src/main/java/org/mozilla/javascript/ScriptCompileSpec.java:104
↓ 28 callers
Method
size
()
rhino/src/main/java/org/mozilla/javascript/NativeArray.java:2260
↓ 28 callers
Method
startCompoundOp
(SlotMapOwner<T> owner, boolean forWriting)
rhino/src/main/java/org/mozilla/javascript/SlotMap.java:91
↓ 28 callers
Method
toLocale
(final String expected, final String js)
tests/src/test/java/org/mozilla/javascript/tests/es6/NativeDateTest.java:629
↓ 27 callers
Method
addIndexOp
(int op, int index)
rhino/src/main/java/org/mozilla/javascript/CodeGenerator.java:1884
↓ 27 callers
Method
addUtf8
(String k)
rhino/src/main/java/org/mozilla/classfile/ConstantPool.java:157
↓ 27 callers
Method
createElement
(Element parent, String name)
tests/src/test/java/org/mozilla/javascript/drivers/JsDriver.java:367
↓ 27 callers
Method
defineClass
Defines JavaScript objects from a Java class that implements Scriptable. <p>If the given class has a method <pre> static void init(Context cx, VarSc
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:826
↓ 27 callers
Method
defineSymbol
(int declType, String name)
rhino/src/main/java/org/mozilla/javascript/Parser.java:2597
↓ 27 callers
Method
fromSource
(String source)
rhino/src/main/java/org/mozilla/javascript/ScriptCompileSpec.java:45
↓ 27 callers
Method
getPrototypeOf
see <a href="https://262.ecma-international.org/12.0/#sec-reflect.getprototypeof">28.1.7 Reflect.getPrototypeOf ( target )</a>
rhino/src/main/java/org/mozilla/javascript/NativeReflect.java:314
↓ 27 callers
Method
hasSimpleContent
()
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XML.java:458
↓ 27 callers
Method
indexOf
(Object o)
rhino/src/main/java/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java:1563
↓ 27 callers
Method
isAssignableFrom
@return {@code true} if the caller TypeInfo represents the super class of the class represented by {@code another} TypeInfo @see Class#isAssignabl
rhino/src/main/java/org/mozilla/javascript/lc/type/TypeInfo.java:293
↓ 27 callers
Method
isConfigurable
()
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:1637
↓ 27 callers
Method
keys
()
tests/src/test/java/org/mozilla/javascript/tests/NativeJavaMapTest.java:129
↓ 27 callers
Method
newString
(String str)
rhino/src/main/java/org/mozilla/javascript/Node.java:150
↓ 27 callers
Method
propertyIsEnumerable
(Object name)
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XML.java:493
↓ 27 callers
Function
startTest
()
tests/testsrc/tests/js1_3/jsref.js:68
↓ 27 callers
Function
test
()
tests/testsrc/tests/js1_3/jsref.js:39
↓ 27 callers
Function
testThis
(sInvalidSyntax)
tests/testsrc/tests/js1_5/Regress/regress-224956.js:194
↓ 27 callers
Method
toDateString
(final String expected, final String tz)
tests/src/test/java/org/mozilla/javascript/tests/es6/NativeDateTest.java:700
↓ 27 callers
Function
writeHeaderToLog
( string )
tests/testsrc/tests/js1_3/jsref.js:152
↓ 26 callers
Method
action
(final String fn, final Action a)
rhino/src/test/java/org/mozilla/javascript/tests/Bug783797Test.java:27
↓ 26 callers
Method
assertSource
Asserts that the value returned by {@link AstRoot#toSource()} after the given input source was parsed equals the specified expected output source. @p
rhino/src/test/java/org/mozilla/javascript/tests/Bug491621Test.java:27
↓ 26 callers
Method
convertThisObject
A convenience method to convert JavaScript's "this" object into a target class and throw a TypeError if it does not match. This is useful for implemen
rhino/src/main/java/org/mozilla/javascript/LambdaConstructor.java:470
↓ 26 callers
Method
getOwnPropertyDescriptor
(Context cx, Object id)
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:3019
↓ 26 callers
Method
getOwnPropertyDescriptor
()
tests/src/test/java/org/mozilla/javascript/tests/es6/NativeProxyTest.java:373
↓ 26 callers
Method
isArg
(Object[] args, int i)
rhino/src/main/java/org/mozilla/javascript/typedarrays/NativeArrayBufferView.java:80
↓ 26 callers
Function
jsTestDriverEnd
()
tests/testsrc/tests/shell.js:805
↓ 26 callers
Method
modify
Return the Slot that matches EITHER "key" or "index". (It will use "key" if it is not null, and otherwise "index".) If no slot exists, then create a d
rhino/src/main/java/org/mozilla/javascript/SlotMap.java:48
↓ 26 callers
Method
now
()
rhino/src/main/java/org/mozilla/javascript/NativeDate.java:947
↓ 26 callers
Method
put
Sets the value of the named property, creating it if need be. <p>If the property was created using defineProperty, the appropriate setter method is c
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:234
↓ 26 callers
Method
startMethod
Add a method and begin adding code. <p>This method must be called before other methods for adding code, exception tables, etc. can be invoked. @para
rhino/src/main/java/org/mozilla/classfile/ClassFileWriter.java:238
↓ 25 callers
Function
addNewTestCase
( DateCase, DateString, ResultArray )
tests/testsrc/tests/ecma/Date/15.9.3.1-1.js:181
↓ 25 callers
Method
addToList
(Object toAdd)
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XMLList.java:418
↓ 25 callers
Method
assertEvaluatorExceptionES6
Execute the provided script and assert an {@link EvaluatorException}. The error message of the {@link EvaluatorException} has to start with the provid
testutils/src/main/java/org/mozilla/javascript/testutils/Utils.java:356
↓ 25 callers
Method
expr
(boolean allowTrailingComma)
rhino/src/main/java/org/mozilla/javascript/Parser.java:2667
↓ 25 callers
Method
getIndex
(byte[] iCode, int pc)
rhino/src/main/java/org/mozilla/javascript/Interpreter.java:116
↓ 25 callers
Method
getLineNumberFromPc
(int pc, int pcLineStart)
rhino/src/main/java/org/mozilla/javascript/ACompilerData.java:25
↓ 25 callers
Method
getMessage
Look up the message corresponding to messageId in the org.mozilla.javascript.tools.shell.resources.Messages property file. For internationalization su
rhino-tools/src/main/java/org/mozilla/javascript/tools/ToolErrorReporter.java:43
↓ 25 callers
Method
getObjectProp
Version of getObjectElem when elem is a valid JS identifier name. @deprecated Use {@link #getObjectProp(Object, String, Context, VarScope)} instead
rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java:1916
↓ 25 callers
Method
getTargetThrowIfRevoked
()
rhino/src/main/java/org/mozilla/javascript/NativeProxy.java:1281
↓ 25 callers
Method
hasProperty
Returns whether a named property is defined in an object or any object in its prototype chain. <p>Searches the prototype chain for a property named {
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:2475
↓ 25 callers
Method
isFinite
(String expected, String source)
rhino/src/test/java/org/mozilla/javascript/tests/ToNumberConversionsTest.java:130
↓ 25 callers
Method
isPrimitive
@see Class#isPrimitive()
rhino/src/main/java/org/mozilla/javascript/lc/type/TypeInfo.java:130
↓ 25 callers
Method
jsToJava
Convert a JavaScript value into the desired type. Uses the semantics defined with LiveConnect3 and throws an Illegal argument exception if the convers
rhino/src/main/java/org/mozilla/javascript/Context.java:1882
↓ 25 callers
Method
print
( Context cx, VarScope scope, Level level, Object[] args, ScriptStackElement[] stack)
rhino/src/main/java/org/mozilla/javascript/NativeConsole.java:42
↓ 25 callers
Method
realThis
(Object thisObj)
rhino/src/main/java/org/mozilla/javascript/typedarrays/NativeDataView.java:97
↓ 25 callers
Method
runScript
(final String scriptSourceText)
tests/src/test/java/org/mozilla/javascript/tests/JavaAcessibilityTest.java:162
↓ 25 callers
Method
toByteArray
Get the class file as array of bytesto the OutputStream.
rhino/src/main/java/org/mozilla/classfile/ClassFileWriter.java:2803
↓ 24 callers
Function
DrawLine
(From, To)
benchmarks/testsrc/benchmarks/sunspider-0.9.1/3d-cube.js:17
↓ 24 callers
Function
DrawLine
(From, To)
benchmarks/testsrc/benchmarks/sunspider-1.0/3d-cube.js:17
↓ 24 callers
Function
ReadDataFromBuffer
(ab, ctor)
tests/testsrc/jstests/typedarray-helpers.js:105
↓ 24 callers
Method
compileScript
Compile a script from intermediate representation tree into an executable form. @param compilerEnv Compiler environment @param tree parse tree @param
rhino/src/main/java/org/mozilla/javascript/Evaluator.java:23
↓ 24 callers
Function
createVector
(x,y,z)
benchmarks/testsrc/benchmarks/sunspider-0.9.1/3d-raytrace.js:26
↓ 24 callers
Function
createVector
(x,y,z)
benchmarks/testsrc/benchmarks/sunspider-1.0/3d-raytrace.js:26
↓ 24 callers
Method
flush
()
rhino-tools/src/main/java/org/mozilla/javascript/tools/Console.java:24
↓ 24 callers
Method
getElements
Returns the element list. Returns an immutable empty list if there are no elements.
rhino/src/main/java/org/mozilla/javascript/ast/ObjectLiteral.java:55
↓ 24 callers
Method
js_get
(int index)
rhino/src/main/java/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java:386
↓ 24 callers
Method
newXMLList
()
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XMLLibImpl.java:489
↓ 24 callers
Method
stopMethod
Complete generation of the method. <p>After this method is called, no more code can be added to the method begun with {@code startMethod}. @param ma
rhino/src/main/java/org/mozilla/classfile/ClassFileWriter.java:262
↓ 24 callers
Method
toFixed
The algorithm of Number.prototype.toFixed(fractionDigits).
rhino/src/main/java/org/mozilla/javascript/dtoa/DecimalFormatter.java:43
↓ 24 callers
Method
wrap
@see #wrap(Context, VarScope, Object, TypeInfo)
rhino/src/main/java/org/mozilla/javascript/WrapFactory.java:31
↓ 24 callers
Method
wrapBoolean
(boolean b)
rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java:390
↓ 24 callers
Method
write
(Document template, boolean xml)
tests/src/test/java/org/mozilla/javascript/drivers/JsDriver.java:468
↓ 24 callers
Method
writeLine
Write a string to the end TestLog file.
tests/testsrc/tests/src/com/netscape/javascript/qa/drivers/TestLog.java:41
↓ 23 callers
Function
CreateSourceProxy
(length)
tests/testsrc/jstests/es2024/typedarray-resizablearraybuffer.js:6805
↓ 23 callers
Method
child
(XMLName xmlName)
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XML.java:349
↓ 23 callers
Method
ensureScriptableObject
(Object arg)
rhino/src/main/java/org/mozilla/javascript/ScriptableObject.java:2118
↓ 23 callers
Method
forCtor
(BuiltInJSCodeExec<JSFunction> code)
rhino/src/main/java/org/mozilla/javascript/NativeArray.java:167
↓ 23 callers
Method
getDeclaringClass
()
rhino/src/main/java/org/mozilla/javascript/lc/member/ExecutableBox.java:109
↓ 23 callers
Method
getRawElem
(Scriptable target, long index)
rhino/src/main/java/org/mozilla/javascript/ArrayLikeAbstractOperations.java:247
↓ 23 callers
Method
getUri
()
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XmlNode.java:651
↓ 23 callers
Method
getVariables
Returns variable list. Never {@code null}.
rhino/src/main/java/org/mozilla/javascript/ast/VariableDeclaration.java:45
↓ 23 callers
Method
hasComplexContent
()
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XML.java:465
↓ 23 callers
Method
isObject
(Object value)
rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java:3695
↓ 23 callers
Method
putProp
(int propType, Object prop)
rhino/src/main/java/org/mozilla/javascript/Node.java:531
↓ 23 callers
Method
rangeError
(String message)
rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java:5775
↓ 23 callers
Method
self
(Scriptable thisObj)
tests/src/test/java/org/mozilla/javascript/tests/LambdaAccessorSlotTest.java:567
↓ 23 callers
Method
setLanguageVersion
(int version)
rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellContextFactory.java:65
↓ 23 callers
Method
start
()
tests/testsrc/tests/src/com/netscape/javascript/qa/drivers/NavDrv.java:238
↓ 22 callers
Function
addThis
()
tests/testsrc/tests/js1_5/Array/regress-107138.js:157
↓ 22 callers
Function
addThis
()
tests/testsrc/tests/ecma_3/RegExp/regress-224676.js:176
↓ 22 callers
Function
assertArrayPrefix
(expected, array)
tests/testsrc/jstests/harmony/external-array.js:547
↓ 22 callers
Function
checkThis
(sValidSyntax)
tests/testsrc/tests/ecma_3/RegExp/regress-223273.js:213
↓ 22 callers
Method
computeIfAbsent
(Path path, Function<Path, Node> mappingFunction)
tests/src/test/java/org/mozilla/javascript/tests/Test262SuiteTest.java:1127
↓ 22 callers
Method
constructError
(String error, String message)
rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java:5750
↓ 22 callers
Method
copy
()
rhino-xml/src/main/java/org/mozilla/javascript/xmlimpl/XML.java:453
↓ 22 callers
Method
decode
(String mappings, int sourcesCount, int namesCount)
rhino/src/main/java/org/mozilla/javascript/sourcemap/MappingsDecoder.java:40
↓ 22 callers
Method
elementAt
(int index)
tests/src/test/java/org/mozilla/javascript/tests/lc/JavaBeaningTest.java:119
← previous
next →
401–500 of 18,679, ranked by callers