SDK Documents
NetFront Browser v3.4 ECMAScript Support List Rev.1.0

2. Native ECMAScript Objects

2.1 The Global Object

Property/Function/MethodSupportRemark
Value Properties of the Global Object
NaN Yes
Infinity Yes
undefined Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Function Properties of the Global Object
eval(x) Yes
parseInt(string [, radix]) Yes
parseFloat(string) Yes
isNaN(number) Yes
isFinite(number) Yes
toString() Yes
URI Handling Function Properties
decodeURI(encodedURI) Yes
decodeURIComponent(encodedURIComponent) Yes
encodeURI(uri) Yes
encodeURIComponent(uriComponent) Yes
escape(string) Yes
unescape(string) Yes

2.2 Object Objects

Property/Function/MethodSupportRemark
The Object Constructor Called as a Function
Object([value]) Yes
The Object Constructor
new Object([value]) Yes
Properties of the Object Constructor
length Yes
prototype Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Object Prototype Object
constructor Yes
toString() Yes
toLocaleString() Yes
valueOf() Yes
hasOwnProperty(V) Yes
isPrototypeOf(V) Yes
propertyIsEnumerable(V) Yes
toSource() No
unwatch(prop) No
watch(prop, handler) No

2.3 Function Objects

Property/Function/MethodSupportRemark
The Function Constructor Called as a Function
Function([p1, p2, ... , pN,] body) Yes
The Function Constructor
new Function([p1, p2, ... , pN,] body) Yes
Properties of the Function Constructor
length Yes
prototype Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of Function Instances
length Yes
prototype Yes
arity No
Properties of the Function Prototype Object
constructor Yes
toString() Yes
apply(thisArg [, argArray]) Yes
call(thisArg [, arg1, arg2, ... , argN]) Yes
toSource() No

2.4 Arguments Object

Property/Function/MethodSupportRemark
Properties
callee Yes
length Yes

2.5 Array Objects

Property/Function/MethodSupportRemark
The Array Constructor Called as a Function
Array([item1, item2, ... , itemN]) Yes
The Array Constructor
new Array([item0, item1, ... , itemN]) Yes
new Array(len) Yes
Properties of the Array Constructor
length Yes
prototype Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Array Prototype Object
constructor Yes
toString() Yes
toLocaleString() Yes
concat([item1, item2, ... , itemN]) Yes
join(separator) Yes
pop() Yes
push([item1, item2, ... , itemN]) Yes
reverse() Yes
shift() Yes
slice(start [, end]) Yes
sort(comparefn) Yes
splice(start, deleteCount [, item1, item2, ... , itemN]) Yes
unshift([item1, item2, ... , itemN]) Yes
toSource() No
Properties of Array Instances
length Yes

2.6 String Objects

Property/Function/MethodSupportRemark
The String Constructor Called as a Function
String([value]) Yes
The String Constructor
new String([value]) Yes
Properties of the String Constructor
length Yes
prototype Yes
fromCharCode([code0, code1, ... , codeN]) Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the String Prototype Object
constructor Yes
toString() Yes
valueOf() Yes
charAt(pos) Yes
charCodeAt(pos) Yes
concat([item1, item2, ... , itemN]) Yes
indexOf(pattern [, pos]) Yes
lastIndexOf(pattern [, pos]) Yes
localeCompare(that) Yes
match(regexp) Yes
replace(searchValue, replaceValue) Yes
search(regexp) Yes
slice(start [, end]) Yes
split(separator [, lim]) Yes
substring(start, end) Yes
substr(start [, length]) Yes
toLowerCase() Yes
toLocaleLowerCase() Yes
toUpperCase() Yes
toLocaleUpperCase() Yes
toSource() No
Properties of String Instances
length Yes

2.7 Boolean Objects

Property/Function/MethodSupportRemark
The Boolean Constructor Called as a Function
Boolean(value) Yes
The Boolean Constructor
new Boolean(value) Yes
Properties of the Boolean Constructor
length Yes
prototype Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Boolean Prototype Object
constructor Yes
toString() Yes
valueOf() Yes
toSource() No

2.8 Number Objects

Property/Function/MethodSupportRemark
The Number Constructor Called as a Function
Number([value]) Yes
The Number Constructor
new Number([value]) Yes
Properties of the Number Constructor
length Yes
prototype Yes
MAX_VALUE Yes
MIN_VALUE Yes
NaN Yes
NEGATIVE_INFINITY Yes
POSITIVE_INFINITY Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Number Prototype Object
constructor Yes
toString([radix]) Yes
toLocaleString() Yes In NF3, if ECMAScript Mobile Profile is enabled, the same value when toFixed(2) is called is returned.
valueOf() Yes
toFixed(fractionDigits) Yes
toExponential(fractionDigits) Yes
toPrecision(precision) Yes
toSource() No

2.9 The Math Object

Property/Function/MethodSupportRemark
Value Properties of the Math Object
E Yes
LN10 Yes
LN2 Yes
LOG2E Yes
LOG10E Yes
PI Yes
SQRT1_2 Yes
SQRT2 Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Function Properties of the Math Object
abs(x) Yes
acos(x) Yes
asin(x) Yes
atan(x) Yes
atan2(y, x) Yes
ceil(x) Yes
cos(x) Yes
exp(x) Yes
floor(x) Yes
log(x) Yes
max([value1, value2, ... , valueN]) Yes
min([value1, value2, ... , valueN]) Yes
pow(x, y) Yes
random() Yes In NF3, if an argument is specified when ECMAScript Mobile Profile is enabled, a random value is returned within the range of integer values specified for the first argument. When something other than ECMAScript Mobile Profile is enabled, even if an argum
round(x) Yes
sin(x) Yes
sqrt(x) Yes
tan(x) Yes

2.10 Date Objects

Property/Function/MethodSupportRemark
The Date Constructor Called as a Function
Date ([year, month, date, hours, minutes, seconds, ms]) Yes Timer precision is system-dependent.
The Date Constructor
new Date(year, month [, date, hours, minutes, seconds, ms]) Yes
new Date() Yes
new Date(milliseconds) Yes
new Date(dateString) Yes
Properties of the Date Constructor
length Yes
prototype Yes
parse(string) Yes
UTC(year, month [, date, hours, minutes, seconds, ms]) Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Date Prototype Object
constructor Yes
toString() Yes
toDateString() Yes
toTimeString() Yes
toLocaleString() Yes
toLocaleDateString() Yes
toLocaleTimeString() Yes
valueOf() Yes
getTime() Yes
getFullYear() Yes
getUTCFullYear() Yes
getMonth() Yes
getUTCMonth() Yes
getDate() Yes
getUTCDate() Yes
getDay() Yes
getUTCDay() Yes
getHours() Yes
getUTCHours() Yes
getMinutes() Yes
getUTCMinutes() Yes
getSeconds() Yes
getUTCSeconds() Yes
getMilliseconds() Yes
getUTCMilliseconds() Yes
getTimezoneOffset() Yes
setTime(time) Yes
setMilliseconds(ms) Yes
setUTCMilliseconds(ms) Yes
setSeconds(sec [, ms]) Yes
setUTCSeconds(sec [, ms]) Yes
setMinutes(minute [, sec, ms]) Yes
setUTCMinutes(minute [, sec, ms]) Yes
setHours(hour [, minute, sec, ms]) Yes
setUTCHours(hour [, minute, sec, ms]) Yes
setDate(date) Yes
setUTCDate(date) Yes
setMonth(month [, date]) Yes
setUTCMonth(month [, date]) Yes
setFullYear(year [, month, date]) Yes
setUTCFullYear(year [, month, date]) Yes
toUTCString() Yes
toGMTString() Yes
getYear() Yes
setYear(year) Yes
toSource() No

2.11 RegExp (Regular Expression) Objects

Property/Function/MethodSupportRemark
The RegExp Constructor Called as a Function
RegExp(pattern [, flags]) Yes
The RegExp Constructor
new RegExp(pattern [, flags]) Yes
Properties of the RegExp Constructor
length Yes
prototype Yes
$1, …$9 Yes
multiline(also $*) No
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the RegExp Prototype Object
constructor Yes
exec([string]) Yes
test([string]) Yes
toString() Yes
compile(pattern [, flags]) Yes
toSource() No
valueOf() Yes
Properties of RegExp Instances
source Yes
global Yes
ignoreCase Yes
multiline Yes
lastIndex Yes

2.12 Error Objects

Property/Function/MethodSupportRemark
The Error Constructor Called as a Function
Error(message) Yes
The Error Constructor
new Error(message) Yes
Properties of the Error Constructor
length Yes
prototype Yes
version Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Properties of the Error Prototype Object
constructor Yes
name Yes
message Yes
toString() Yes
code Yes In NF3, this item is processed only when ECMAScript Mobile Profile is enabled.
Memory error does not occur.