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
fixed show ArrayBuffer constructor as [Function: ArrayBuffer] (#4935)
## Summary
Fixes how constructors are shown in console/debug output so that only
real class constructors use `[class Name]`, while built-ins like
ArrayBuffer use `[Function: Name]`.
Solves #4934
## Changes
Modified `core/engine/src/value/display.rs`
> only shows `[class Name]` when the value is an `OrdinaryFunction` with
`is_class_constructor()`; otherwise shows callables as `[Function:
Name]`.
Replace `.map(...).unwrap_or(false)` with `.is_some_and(...)` to satisfy
Clippy.
0 commit comments