nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/Functions.properties
author sdama
Wed, 15 Jun 2016 14:18:22 +0200
changeset 39074 25390f2ae3ac
parent 35323 0ef5f8b7cd23
child 39899 b3d60e304c3e
permissions -rw-r--r--
8158817: add documentation for NativeMath Reviewed-by: mhaupt, hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34844
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     1
Object.setIndexedPropertiesToExternalArrayData=sets ByteBuffer to hold indexed data (nashorn extension)
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     2
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     3
Object.getPrototypeOf=returns the prototype of the specified object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     4
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     5
Object.setPrototypeOf=sets the prototype of the given object (ES6)
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     6
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     7
Object.getOwnPropertyDescriptor=returns a property descriptor for an own property (not inherited property)
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     8
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
     9
Object.getOwnPropertyNames=returns an array of all properties (enumerable or not) found directly on the given object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    10
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    11
Object.getOwnPropertySymbols=returns an array of all symbol properties found directly on the given object (ES6)
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    12
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    13
Object.create=creates a new object with the specified prototype object and properties
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    14
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    15
Object.defineProperty=adds an own property and/or update the attributes of an existing own property of an object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    16
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    17
Object.defineProperties=defines new or modifies existing properties directly on the given object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    18
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    19
Object.seal=prevents new properties from being added to the given object and marks existing properties as non-configurable
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    20
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    21
Object.freeze=prevents new properties from being added to the given object and prevents existing properties from being removed or re-configured
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    22
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    23
Object.preventExtensions=prevents new properties from ever being added to the given object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    24
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    25
Object.isSealed=tells if an object is sealed or not
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    26
35322
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    27
Object.isFrozen=tells if an object is frozen or not
34844
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    28
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    29
Object.isExtensible=tells if an object is extensible or not
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    30
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    31
Object.keys=returns an array of the given object's own enumerable properties
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    32
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    33
Object=creates a new script object or converts given value as a script object
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    34
35322
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    35
Object.prototype.toString=returns a string representation of this object
34844
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    36
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    37
Object.prototype.hasOwnProperty=tells whether this object has the specified property or not
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    38
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    39
Object.prototype.isPrototypeOf=tests for this object in another object's prototype chain
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    40
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    41
Object.prototype.propertyIsEnumerable=tells whether the given property is enumerable or not
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    42
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    43
Object.bindProperties=binds the source object's properties to the target object (nashorn extension)
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents:
diff changeset
    44
35323
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    45
Array.isArray=tells whether the argument is an array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    46
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    47
Array.prototype.toString=returns a string representation of this array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    48
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    49
Array.prototype.assertNumeric=asserts that the array is numeric, throws a type error if this is not the case
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    50
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    51
Array.prototype.toLocaleString=returns a locale-specific string representation of this array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    52
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    53
Array=creates a new array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    54
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    55
Array.prototype.concat=concatenates arrays
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    56
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    57
Array.prototype.join=returns a string representation of the array, with a separator placed between elements
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    58
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    59
Array.prototype.pop=returns the element from the end of the array, or undefined
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    60
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    61
Array.prototype.push=appends an element to the end of the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    62
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    63
Array.prototype.reverse=reverses the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    64
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    65
Array.prototype.shift=removes the first element from the array and returns that element
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    66
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    67
Array.prototype.slice=returns a shallow copy of a slice of the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    68
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    69
Array.prototype.sort=sorts the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    70
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    71
Array.prototype.splice=changes the content of the array by removing and/or adding elements
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    72
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    73
Array.prototype.unshift=adds one or more elements to the beginning of the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    74
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    75
Array.prototype.indexOf=retrieves the first index of an element in the array, or -1 if the element is not found
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    76
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    77
Array.prototype.lastIndexOf=retrieves the last index of an element in the array, or -1 if the element is not found
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    78
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    79
Array.prototype.every=applies a predicate to all elements of the array, returns true if the predicate evaluates to true for all
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    80
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    81
Array.prototype.some=tests whether a predicate evaluates to true for some element in the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    82
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    83
Array.prototype.forEach=applies a function to all elements in the array
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    84
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    85
Array.prototype.map=applies a function to all elements in the array, returns the array of results
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    86
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    87
Array.prototype.filter=returns an array with those elements from this array that match a filter function
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    88
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    89
Array.prototype.reduce=applies a left-fold to the array and returns the result
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    90
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    91
Array.prototype.reduceRight=applies a right-fold to the array and returns the result
0ef5f8b7cd23 8145305: fix Nashorn shebang handling on Cygwin
mhaupt
parents: 35322
diff changeset
    92
35322
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    93
Function=creates a new function with the given parameters and function body
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    94
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    95
Function.prototype.toString=returns a string representation of this function
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    96
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    97
Function.prototype.apply=invokes the function with the given this-reference and arguments array
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    98
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
    99
Function.prototype.call=invokes the function with the given this-reference and arguments
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
   100
eff26d265a9d 8146274: Thread spinning on WeakHashMap.getEntry() with concurrent use of nashorn
hannesw
parents: 34844
diff changeset
   101
Function.prototype.bind=returns a new function with bound this-reference and arguments
39074
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   102
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   103
Math.abs=returns absolute value of the argument
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   104
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   105
Math.acos=returns an approximation to the arc cosine of argument, return value is expressed in radians
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   106
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   107
Math.asin=returns an approximation to the arc sine of argument, return value is expressed in radians
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   108
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   109
Math.atan=returns an approximation to the arc tangent of argument, return value expressed in radians
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   110
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   111
Math.atan2=returns an approximation to the arc tangent of the quotient argument1/argument2, signs of argument1 and argument2 are used to determine quadrant of the result
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   112
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   113
Math.ceil=returns smallest value that is not less than argument and is equal to a mathematical integer, returns argument itself if it is an integer
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   114
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   115
Math.cos=returns an approximation to the cosine of argument, argument is expressed in radians
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   116
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   117
Math.exp=returns an approximation to the value of exponential function of argument, e raised to the power of argument where e is the base of natural logarithms
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   118
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   119
Math.floor=returns the greatest value that is not greater than argument and is equal to mathematical integer, returns argument itself if it is an integer
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   120
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   121
Math.log=returns an approximation to the natural logarithm of argument
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   122
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   123
Math.max=returns the largest of the given arguments
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   124
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   125
Math.min=returns the smallest of the given arguments
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   126
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   127
Math.pow=returns an approximation to the result of raising argument1 to the power of argument2
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   128
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   129
Math.random=returns random value between 0 to 1, inclusive 0 and exclusive 1
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   130
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   131
Math.round=returns mathematical integer value that is closest to the given argument
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   132
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   133
Math.sin=returns an approximation to the sine of given argument, argument is expressed in radians
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   134
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   135
Math.sqrt=returns an approximation to the square root of given argument
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   136
25390f2ae3ac 8158817: add documentation for NativeMath
sdama
parents: 35323
diff changeset
   137
Math.tan=returns an approximation to the tangent of given argument