@abaplint/runtime 2.10.64 → 2.10.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ import { INumeric } from "../types/_numeric";
|
|
|
4
4
|
export interface IInsertInternalOptions {
|
|
5
5
|
index?: INumeric;
|
|
6
6
|
initial?: boolean;
|
|
7
|
-
data?: INumeric | ICharacter | Structure | ABAPObject | Table | FieldSymbol | string;
|
|
7
|
+
data?: INumeric | ICharacter | Structure | ABAPObject | Table | HashedTable | FieldSymbol | string;
|
|
8
8
|
table: Table | HashedTable | FieldSymbol;
|
|
9
9
|
referenceInto?: DataReference;
|
|
10
10
|
assigning?: FieldSymbol;
|
|
@@ -105,7 +105,7 @@ export declare class Table implements ITable {
|
|
|
105
105
|
getRowType(): TableRowType;
|
|
106
106
|
array(): any[];
|
|
107
107
|
clear(): void;
|
|
108
|
-
set(tab: Table | TableRowType): this;
|
|
108
|
+
set(tab: Table | HashedTable | TableRowType): this;
|
|
109
109
|
getHeader(): TableRowType;
|
|
110
110
|
get(): TableRowType;
|
|
111
111
|
insertIndex(item: TableRowType, index: number, noClone?: boolean): any;
|
package/build/src/types/table.js
CHANGED
|
@@ -373,12 +373,13 @@ class Table {
|
|
|
373
373
|
this.header?.set(tab);
|
|
374
374
|
}
|
|
375
375
|
else {
|
|
376
|
-
if (!(tab instanceof Table) && !(tab instanceof field_symbol_1.FieldSymbol)) {
|
|
377
|
-
throw new Error("Table, set error");
|
|
378
|
-
}
|
|
379
376
|
if (tab instanceof field_symbol_1.FieldSymbol) {
|
|
380
377
|
tab = tab.getPointer();
|
|
381
378
|
}
|
|
379
|
+
if (!(tab instanceof Table)
|
|
380
|
+
&& !(tab instanceof HashedTable)) {
|
|
381
|
+
throw new Error("Table, set error");
|
|
382
|
+
}
|
|
382
383
|
if (tab === this) {
|
|
383
384
|
return this;
|
|
384
385
|
}
|