File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,12 @@ export class IndexMap {
70
70
const sortedMap = safeGet ( this . indexes_ , indexKey ) ;
71
71
if ( ! sortedMap ) throw new Error ( 'No index defined for ' + indexKey ) ;
72
72
73
- if ( sortedMap === fallbackObject ) {
73
+ if ( sortedMap instanceof SortedMap ) {
74
+ return sortedMap ;
75
+ } else {
74
76
// The index exists, but it falls back to just name comparison. Return null so that the calling code uses the
75
77
// regular child map
76
78
return null ;
77
- } else {
78
- return sortedMap as SortedMap < NamedNode , Node > ;
79
79
}
80
80
}
81
81
Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ export interface Node {
116
116
forEachChild ( index : Index , action : ( a : string , b : Node ) => void ) : any ;
117
117
118
118
/**
119
- * @param { boolean= } exportFormat True for export format (also wire protocol format).
120
- * @return { * } Value of this node as JSON.
119
+ * @param exportFormat True for export format (also wire protocol format).
120
+ * @return Value of this node as JSON.
121
121
*/
122
122
val ( exportFormat ?: boolean ) : any ;
123
123
Original file line number Diff line number Diff line change @@ -24,10 +24,13 @@ import 'promise-polyfill/lib/polyfill';
24
24
// ES Stable
25
25
import 'core-js/features/array/find' ;
26
26
import 'core-js/features/array/find-index' ;
27
+ import 'core-js/features/array/from' ;
27
28
import 'core-js/features/object/assign' ;
28
29
import 'core-js/features/object/entries' ;
29
30
import 'core-js/features/object/values' ;
30
31
import 'core-js/features/string/starts-with' ;
31
32
import 'core-js/features/string/repeat' ;
32
33
import 'core-js/features/symbol' ;
33
34
import 'core-js/features/symbol/iterator' ;
35
+ import 'core-js/features/map' ;
36
+ import 'core-js/features/set' ;
You can’t perform that action at this time.
0 commit comments