@@ -796,7 +796,6 @@ class iNetwork {
796796 DNS_listening_port : data [ 27 ] . _ ,
797797 Host_name : data [ 28 ] . _ ,
798798 Domain_name : data [ 29 ] . _ ,
799- Reserved : data [ 30 ] . _ ,
800799 Domain_search_list : data [ 31 ] . _ ,
801800 } ;
802801 } else { rtValue = str ; }
@@ -1217,17 +1216,13 @@ class iObj {
12171216 Adopted_data_update : data [ 21 ] . _ ,
12181217 Adopted_data_delete : data [ 22 ] . _ ,
12191218 Adopted_data_execute : data [ 23 ] . _ ,
1220- Reserved : data [ 24 ] . _ ,
12211219 Adopted_object_alter : data [ 25 ] . _ ,
12221220 Adopted_object_reference : data [ 26 ] . _ ,
1223- // Reserved: data[27]._, // TODO: duplicate key
12241221 Data_execute : data [ 28 ] . _ ,
1225- // Reserved: data[29]._, // TODO: duplicate key
12261222 Object_alter : data [ 30 ] . _ ,
12271223 Object_reference : data [ 31 ] . _ ,
12281224 ASP_device_name_of_library : data [ 32 ] . _ ,
12291225 ASP_device_name_of_object : data [ 33 ] . _ ,
1230- // Reserved: data[34]._, // TODO: duplicate key
12311226 Offset_to_group_information_table : data [ 35 ] . _ ,
12321227 Number_of_group_table_entries_returned : data [ 36 ] . _ ,
12331228 } ;
@@ -1530,7 +1525,6 @@ class iObj {
15301525 Text_description : data [ 17 ] . _ ,
15311526 Type_of_program : data [ 18 ] . _ ,
15321527 'Teraspace_storage-enabled_program' : data [ 19 ] . _ ,
1533- Reserved : data [ 20 ] . _ ,
15341528 Minimum_number_of_parameters : data [ 21 ] . _ ,
15351529 Maximum_number_of_parameters : data [ 22 ] . _ ,
15361530 Program_size : data [ 23 ] . _ ,
@@ -1548,13 +1542,11 @@ class iObj {
15481542 Program_domain : data [ 35 ] . _ ,
15491543 Conversion_required : data [ 36 ] . _ ,
15501544 Conversion_details : data [ 37 ] . _ ,
1551- // Reserved: data[38]._, // TODO: duplicate
15521545 Optimization : data [ 39 ] . _ ,
15531546 Paging_pool : data [ 40 ] . _ ,
15541547 'Update_program_automatic_storage_area_(PASA)' : data [ 41 ] . _ ,
15551548 'Clear_program_automatic_storage_area_(PASA)' : data [ 42 ] . _ ,
15561549 Paging_amount : data [ 43 ] . _ ,
1557- // Reserved: data[38]._, // TODO: duplicate
15581550 Program_entry_procedure_module : data [ 45 ] . _ ,
15591551 Program_entry_procedure_module_library : data [ 46 ] . _ ,
15601552 Activation_group_attribute : data [ 47 ] . _ ,
@@ -1715,7 +1707,6 @@ class iObj {
17151707 Teraspace_storage_enabled_modules : data [ 26 ] . _ ,
17161708 Storage_model : data [ 27 ] . _ ,
17171709 'Uses_argument_optimization_(ARGOPT)' : data [ 28 ] . _ ,
1718- "Reserved_'00'X" : data [ 29 ] . _ ,
17191710 Service_program_state : data [ 30 ] . _ ,
17201711 Service_program_domain : data [ 31 ] . _ ,
17211712 Associated_space_size : data [ 32 ] . _ ,
@@ -1728,7 +1719,6 @@ class iObj {
17281719 Conversion_required : data [ 39 ] . _ ,
17291720 All_creation_data : data [ 40 ] . _ ,
17301721 Conversion_details : data [ 41 ] . _ ,
1731- Reserved : data [ 42 ] . _ ,
17321722 Paging_pool : data [ 43 ] . _ ,
17331723 Paging_amount : data [ 44 ] . _ ,
17341724 } ;
@@ -1808,12 +1798,10 @@ class iObj {
18081798 rtValue = {
18091799 User_profile_name : data [ 2 ] . _ ,
18101800 'Previous_sign-on_date_and_time' : data [ 3 ] . _ ,
1811- // Reserved: data[4]._, // TODO: This is a duplicate
18121801 'Sign-on_attempts_not_valid' : data [ 5 ] . _ ,
18131802 Status : data [ 6 ] . _ ,
18141803 Password_change_date : data [ 7 ] . _ ,
18151804 No_password_indicator : data [ 8 ] . _ ,
1816- Reserved : data [ 9 ] . _ ,
18171805 Password_expiration_interval : data [ 10 ] . _ ,
18181806 Date_password_expires : data [ 11 ] . _ ,
18191807 Days_until_password_expires : data [ 12 ] . _ ,
@@ -1924,7 +1912,6 @@ class iObj {
19241912 Object_existence : data [ 5 ] . _ ,
19251913 Object_alter : data [ 6 ] . _ ,
19261914 Object_reference : data [ 7 ] . _ ,
1927- Reserved : data [ 8 ] . _ ,
19281915 Object_operational : data [ 9 ] . _ ,
19291916 Data_read : data [ 10 ] . _ ,
19301917 Data_add : data [ 11 ] . _ ,
@@ -2116,7 +2103,6 @@ class iProd {
21162103 Server_IPL_required : data [ 29 ] . _ ,
21172104 Creation_date_and_time : data [ 30 ] . _ ,
21182105 Technology_refresh_PTF : data [ 31 ] . _ ,
2119- Reserved : data [ 32 ] . _ ,
21202106 } ;
21212107 } else { rtValue = str ; }
21222108
@@ -2232,7 +2218,6 @@ class iProd {
22322218 const { data } = result . myscript . pgm [ 0 ] . parm [ 0 ] . ds [ 0 ] ;
22332219
22342220 rtValue = {
2235- // Reserved: data[2]._, // TODO: Duplicate key
22362221 Product_ID : data [ 3 ] . _ ,
22372222 Release_level : data [ 4 ] . _ ,
22382223 Product_option : data [ 5 ] . _ ,
@@ -2244,14 +2229,12 @@ class iProd {
22442229 Supported_flag : data [ 11 ] . _ ,
22452230 Registration_type : data [ 12 ] . _ ,
22462231 Registration_value : data [ 13 ] . _ ,
2247- // Reserved: data[14]._, // TODO: Duplicate key
22482232 Offset_to_additional_information : data [ 15 ] . _ ,
22492233 Primary_language_load_identifier : data [ 16 ] . _ ,
22502234 Minimum_target_release : data [ 17 ] . _ ,
22512235 'Minimum_VRM_of_*BASE_required_by_option' : data [ 18 ] . _ ,
22522236 Requirements_met_between_base_and_option_value : data [ 19 ] . _ ,
22532237 Level : data [ 20 ] . _ ,
2254- Reserved : data [ 21 ] . _ ,
22552238 } ;
22562239 } else { rtValue = str ; }
22572240
@@ -2767,8 +2750,14 @@ class iWork {
27672750 return false ;
27682751 } ) ) ;
27692752
2770- // TODO: Throw error
2771- if ( keyValid === false ) { return ; }
2753+ if ( keyValid === false ) {
2754+ if ( this . reportError ) {
2755+ cb ( new Error ( `Invalid System value: ${ sysValue } ` ) , null ) ;
2756+ return ;
2757+ }
2758+ cb ( null ) ;
2759+ return ;
2760+ }
27722761
27732762 let item ;
27742763 if ( type === '10i0' ) { item = { type : '10i0' , value : 0 } ; } else { item = { type, value : '' } ; }
@@ -3398,8 +3387,6 @@ const xmlToJson = (xml) => {
33983387 const rtDataRegG = / < d a t a d e s c = ' .* ?' > [ \s \S ] * ?< \/ d a t a > / g;
33993388 const rtDataReg = / < d a t a d e s c = ' ( .* ?) ' > ( [ \s \S ] * ?) < \/ d a t a > / ;
34003389
3401- // const dsRegG = /<ds.*?>[\s\S]+?<\/ds>/g; // TODO: Not used
3402- // const dsReg = /<ds.*?>([\s\S]+?)<\/ds>/; // TODO: Not used
34033390 const dataRegG = / < d a t a [ \s \S ] * ?< \/ d a t a > / g;
34043391 const dataReg = / < d a t a .* ?t y p e = ' ( .* ?) ' .* ?> ( [ \s \S ] * ?) < \/ d a t a > / ;
34053392 const sqlResultG = / < r o w > [ \s \S ] + ?< \/ r o w > / g;
0 commit comments