You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add isReady function to check WASM module initialization
- Add isReady() function to wasm/index.js and wasm/index.cjs
- Export isReady from main index.js with TypeScript definition
- Document isReady in README with clear usage examples
- Helps users avoid 'WASM module not initialized' errors with sync methods
- All 32 tests passing, no breaking changes
Co-Authored-By: Dan Lynch <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,30 @@ const result = parseQueryDetailedSync('SELECT * FROM users WHERE active = true')
183
183
// Returns: DetailedParseResult with enhanced error information if parsing fails
184
184
```
185
185
186
+
### `isReady(): boolean`
187
+
188
+
Checks if the WebAssembly module is initialized and ready for synchronous operations. This is useful when using sync methods to avoid "WASM module not initialized" errors.
0 commit comments