Skip to content

Commit ea43b0c

Browse files
committed
WIP: remove temp hack
1 parent 68f8daa commit ea43b0c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/database/core/snap/IndexMap.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ import { contains, clone, map } from "../../../utils/obj";
44
import { NamedNode } from "./Node";
55
import { PriorityIndex, KeyIndex, Fallback } from "./IndexFactory";
66

7-
const defaultParams = [{},{}];
8-
9-
Object.defineProperty(defaultParams[0], '.priority', {
10-
get: () => Fallback
11-
});
12-
13-
Object.defineProperty(defaultParams[1], '.priority', {
14-
get: () => PriorityIndex
15-
})
16-
177
/**
188
*
199
* @param {Object.<string, FallbackType|SortedMap.<NamedNode, Node>>} indexes
@@ -29,7 +19,7 @@ export class IndexMap {
2919
* @type {!IndexMap}
3020
* @const
3121
*/
32-
static Default = new IndexMap(defaultParams[0], defaultParams[1]);
22+
static Default = new IndexMap(Fallback, PriorityIndex);
3323

3424
constructor(indexes, indexSet) {
3525
this.indexes_ = indexes;

0 commit comments

Comments
 (0)