hermes-parser 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,7 +67,7 @@ const hermesParseResult_getPositionBufferSize = HermesParserWASM.cwrap(
|
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
// Copy a string into the WASM heap and null-terminate
|
|
70
|
-
function copyToHeap(buffer, addr) {
|
|
70
|
+
function copyToHeap(buffer: Buffer, addr: number) {
|
|
71
71
|
HermesParserWASM.HEAP8.set(buffer, addr);
|
|
72
72
|
HermesParserWASM.HEAP8[addr + buffer.length] = 0;
|
|
73
73
|
}
|