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
### Added
* Added `Error::stack_trace_limit()` and `Error::set_stack_trace_limit()` bindings
to `js-sys` for the non-standard V8 `Error.stackTraceLimit` property.
[#5082](https://github.com/wasm-bindgen/wasm-bindgen/pull/5082)
* Added support for multiple `#[wasm_bindgen(start)]` functions, which are
chained together at initialization, as well as a new
`#[wasm_bindgen(start, private)]` to register a start function without
exporting it as a public export.
[#5081](https://github.com/wasm-bindgen/wasm-bindgen/pull/5081)
* Reinitialization is no longer automatically applied when using `panic=unwind`
and `--experimental-reset-state-function`, instead it is triggered by any
use of the `handler::schedule_reinit()` function under `panic=unwind`,
which is supported from within the `on_abort` handler for reinit workflows.
Renamed `handler::reinit()` to `handler::schedule_reinit()` and removed
the `set_on_reinit()` handler. The `__instance_terminated` address
is now always a simple boolean (`0` = live, `1` = terminated).
[#5083](https://github.com/wasm-bindgen/wasm-bindgen/pull/5083)
* `handler::schedule_reinit()` now works under `panic=abort` builds. Previously
it was a no-op; it now sets the JS-side reinit flag and the next export call
transparently creates a fresh `WebAssembly.Instance`.
[#5099](https://github.com/wasm-bindgen/wasm-bindgen/pull/5099)
### Changed
* MSRV bump from 1.71 to 1.76 for the CLI, and 1.82 to 1.86 for the API
[#5102](https://github.com/wasm-bindgen/wasm-bindgen/pull/5102)
### Fixed
* ES module `import` statements are now hoisted to the top of generated JS
files, placed right after the `@ts-self-types` directive. This ensures
valid ES module output since `import` declarations must precede other
statements.
[#5103](https://github.com/wasm-bindgen/wasm-bindgen/pull/5103)
* Fixed two CLI issues affecting WASM modules built by rustc 1.94+. First,
a panic (`failed to find N in function table`) caused by lld emitting element
segment offsets as `global.get $__table_base` or extended const expressions
instead of plain `i32.const N` for large function tables; the fix adds a
const-expression evaluator in `get_function_table_entry` and guards against
integer underflow in multi-segment tables. Second, the descriptor interpreter
now routes all global reads/writes through a single `globals` HashMap seeded
from the module's own globals, and mirrors the module's actual linear memory
rather than a fixed 32KB buffer, so the stack pointer's real value is valid
without any override. This fixes panics like `failed to find 32752 in function
table` caused by `GOT.func.internal.*` globals being misidentified as the
stack pointer.
[#5076](https://github.com/wasm-bindgen/wasm-bindgen/issues/5076)
[#5080](https://github.com/wasm-bindgen/wasm-bindgen/issues/5080)
[#5093](https://github.com/wasm-bindgen/wasm-bindgen/issues/5093)
[#5095](https://github.com/wasm-bindgen/wasm-bindgen/pull/5095)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
botbotdependenciesPull requests that update a dependency file
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.