Skip to content

Commit a013694

Browse files
[skipruntime] Fix SkipRuntime_createAccumulator (#450)
2 parents 10a3364 + f6137db commit a013694

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

skipruntime-ts/wasm/src/internals/skipruntime_module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ export interface FromWasm {
329329

330330
SkipRuntime_createAccumulator<K1 extends TJSON, V1 extends TJSON>(
331331
ref: Handle<Accumulator<K1, V1>>,
332+
defaultValue: ptr<Internal.CJSON>,
332333
): ptr<Internal.Accumulator>;
333334

334335
// initService
@@ -1030,6 +1031,7 @@ class EagerCollectionImpl<K extends TJSON, V extends TJSON>
10301031
);
10311032
const skaccumulator = this.refs.fromWasm.SkipRuntime_createAccumulator(
10321033
this.refs.handles.register(accumulator),
1034+
this.refs.skjson.exportJSON(accumulator.default),
10331035
);
10341036
const mapped = this.refs.fromWasm.SkipRuntime_Collection__mapReduce(
10351037
this.refs.skjson.exportString(this.collection),

0 commit comments

Comments
 (0)