Skip to content

Commit

Permalink
chore: should log unsupported type not zero and toLocaleString's opti…
Browse files Browse the repository at this point in the history
…on typo (#8002)
  • Loading branch information
ahaoboy committed May 6, 2022
1 parent bb923d6 commit a71a2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/graph/src/AdjacencyList.js
Expand Up @@ -246,7 +246,7 @@ export default class AdjacencyList<TEdgeType: number = 1> {
to: NodeId,
type: TEdgeType | NullEdgeType = 1,
): boolean {
assert(type > 0, `Unsupported edge type ${0}`);
assert(type > 0, `Unsupported edge type ${type}`);

let hash = this.#edges.hash(from, to, type);
let edge = this.#edges.addressOf(hash, from, to, type);
Expand Down Expand Up @@ -600,7 +600,7 @@ export class SharedTypeMap<TItemType, THash, TAddress: number>

get bufferSize(): string {
return `${(this.data.byteLength / 1024 / 1024).toLocaleString(undefined, {
minmumFractionDigits: 2,
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})} mb`;
}
Expand Down

0 comments on commit a71a2ae

Please sign in to comment.