Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Oct 20, 2023
1 parent 00a62dc commit 14b6d21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions binding/web/src/rhino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ export class Rhino {
if (contextPathAddress === 0) {
throw new RhinoErrors.RhinoOutOfMemoryError('malloc failed: Cannot allocate memory');
}
memoryBufferUint8.set(encodedContextPath, contextPathAddress);
memoryBufferUint8[contextPathAddress + encodedContextPath.length] = 0;

const sdkEncoded = new TextEncoder().encode(this._sdk);
const sdkAddress = await aligned_alloc(
Expand Down

0 comments on commit 14b6d21

Please sign in to comment.