# HG changeset patch # User Yaroslav Zhuravlev # Date 1559843295 -10800 # Node ID bde611cbb7ae330b07fb1ff37aa96598a1afd31b # Parent 26fc5c8f13fd8d7d077caff985a67c6502842946 Reordered some items in njs Compatibility. diff -r 26fc5c8f13fd -r bde611cbb7ae xml/en/docs/njs/compatibility.xml --- a/xml/en/docs/njs/compatibility.xml Thu Jun 06 19:58:57 2019 +0300 +++ b/xml/en/docs/njs/compatibility.xml Thu Jun 06 20:48:15 2019 +0300 @@ -9,7 +9,7 @@
@@ -61,7 +61,23 @@ ES5.1: -fromCharCode, +fromCharCode + + + +ES6: +fromCodePoint + + + + + + +String instance methods: + + + +ES5.1: concat, slice, substring, @@ -80,7 +96,6 @@ ES6: -fromCodePoint, codePointAt, includes, startsWith, @@ -117,16 +132,12 @@ defineProperties (support without accessor descriptors), getOwnPropertyDescriptor, getPrototypeOf, -hasOwnProperty, -isPrototypeOf, preventExtensions, isExtensible, freeze, isFrozen, seal, -isSealed, -isEnumerable -(0.3.0) +isSealed @@ -141,11 +152,44 @@ +Object instance methods: + + +ES5.1: +hasOwnProperty, +isPrototypeOf, +isEnumerable +(0.3.0), +valueOf, +toString, +propertyIsEnumerable + + + + + + Array methods: ES5.1: -isArray, slice, splice, +isArray + + + +ES6: +of + + + + + + +Array instance methods: + + +ES5.1: +slice, splice, push, pop, unshift, shift, reverse, sort, join, concat, indexOf, @@ -157,7 +201,7 @@ ES6: -of, fill, find, +fill, find, findIndex @@ -169,34 +213,43 @@ -ES5.1 Function methods: -call, apply, bind - - - -RegExp: +Function instance methods: -ES5.1: methods test, exec +ES5.1: +call, apply, bind + + + -ES9: named capture groups (0.3.2) +RegExp instance methods: + + + +ES5.1: +test, exec, toString +RegExp +ES9 named capture groups (0.3.2) + + + Date methods: ES5.1: -Date.UTC, -Date.now, -Date.parse +UTC, +now, +parse @@ -254,7 +307,16 @@ -ES5.1 JSON object +JSON methods: + + + +ES5.1: +parse, +stringify + + + diff -r 26fc5c8f13fd -r bde611cbb7ae xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Thu Jun 06 19:58:57 2019 +0300 +++ b/xml/en/docs/njs/reference.xml Thu Jun 06 20:48:15 2019 +0300 @@ -9,7 +9,7 @@
+ rev="28">
@@ -860,7 +860,7 @@ to convert njs values to and from JSON format. -JSON.parse(string[, +JSON.parse(string[, reviver]) Converts a string that represents JSON data @@ -870,7 +870,7 @@ that will be called for each (key,value) pair and can transform the value. -JSON.stringify(value[, +JSON.stringify(value[, replacer] [, space]) Converts an njs object back to JSON. diff -r 26fc5c8f13fd -r bde611cbb7ae xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml Thu Jun 06 19:58:57 2019 +0300 +++ b/xml/ru/docs/njs/compatibility.xml Thu Jun 06 20:48:15 2019 +0300 @@ -9,7 +9,7 @@
@@ -55,13 +55,31 @@ Math + Методы String: + ES5.1: -fromCharCode, +fromCharCode + + + +ES6: +fromCodePoint + + + + + + +Методы экземпляра класса String: + + + +ES5.1: concat, slice, substring, @@ -80,7 +98,6 @@ ES6: -fromCodePoint, codePointAt, includes, startsWith, @@ -117,16 +134,12 @@ defineProperties (поддержка без дескрипторов доступа), getOwnPropertyDescriptor, getPrototypeOf, -hasOwnProperty, -isPrototypeOf, preventExtensions, isExtensible, freeze, isFrozen, seal, -isSealed, -isEnumerable -(0.3.0) +isSealed @@ -140,12 +153,46 @@ + + +Методы экземпляра класса Object: + + +ES5.1: +hasOwnProperty, +isPrototypeOf, +isEnumerable +(0.3.0), +valueOf, +toString, +propertyIsEnumerable + + + + + Методы Array: ES5.1: -isArray, slice, splice, +isArray + + + +ES6: +of + + + + + + +Методы экземпляра класса Array: + + +ES5.1: +slice, splice, push, pop, unshift, shift, reverse, sort, join, concat, indexOf, @@ -157,7 +204,7 @@ ES6: -of, fill, find, +fill, find, findIndex @@ -169,34 +216,43 @@ -ES5.1 методы Function: -call, apply, bind - - - -RegExp: +Методы экземпляра класса Function: -ES5.1: методы test, exec +ES5.1: +call, apply, bind + + + -ES9: именные группы записи (0.3.2) +Методы экземпляра класса RegExp: + + + +ES5.1: +test, exec, toString +RegExp +ES9 именные группы записи (0.3.2) + + + Методы Date: ES5.1: -Date.UTC, -Date.now, -Date.parse +UTC, +now, +parse @@ -247,17 +303,23 @@ setMonth, setUTCMonth, setFullYear, -setUTCFullYear, -Date.UTC, -Date.now, -Date.parse +setUTCFullYear -ES5.1 объект JSON +Методы JSON: + + + +ES5.1: +parse, +stringify + + +