deno
65a40d00 - fix(console): find nodejs.util.inspect.custom on Proxy objects via get trap (#33265)

Commit
149 days ago
fix(console): find nodejs.util.inspect.custom on Proxy objects via get trap (#33265) ## Summary Deno's `console.log`/`Deno.inspect` used `ReflectHas` (the `in` operator) to check for `Symbol.for('nodejs.util.inspect.custom')`. For Proxy objects that override the `has` trap to hide symbols while still exposing them via `get` (e.g. nodejs-polars DataFrames), this caused the custom inspect to be skipped entirely. Node.js accesses the symbol directly without going through `has`. This commit matches that behavior. **Before:** `console.log(df)` outputs `{}` for a nodejs-polars DataFrame **After:** `console.log(df)` outputs the formatted table (via the custom inspect method) Closes #33236 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading