GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — funky behavior inside Proxy handler function · Issue #6464 · nodejs/node

funky behavior inside Proxy handler function #6464

New issue
Copy link
New issue
Copy link
Closed
Closed
funky behavior inside Proxy handler function#6464
Copy link
Labels
confirmed-bugIssues and PRs for confirmed bugs.utilIssues and PRs related to the built-in util module.

Description

@rusintez
rusintez
opened on Apr 29, 2016
Issue body actions
  • Version: 6.0.0
  • Platform: darwin
  • Subsystem: 10.11

screen shot 2016-04-29 at 14 53 46

Activity

  1. rusintez commented on Apr 29, 2016

    @rusintez
    rusintez
    on Apr 29, 2016
    Author
    More actions

    screen shot 2016-04-29 at 15 00 55

  2. jasnell
    added
    confirmed-bugIssues and PRs for confirmed bugs.
    utilIssues and PRs related to the built-in util module.
    on Apr 29, 2016
  3. jasnell commented on Apr 29, 2016

    @jasnell
    jasnell
    on Apr 29, 2016
    Member
    More actions

    Confirmed, it seems that util.inspect doesn't know what to make of Proxy objects in certain cases... will look into it.

  4. jasnell commented on Apr 29, 2016

    @jasnell
    jasnell
    on Apr 29, 2016
    Member
    More actions

    The issue here is that the firstthird argument passed to get is the proxy object itself. This is passed to console.log() which does a util.inspect(). Now, util.inspect() attempts to walk the properties for the Proxy object, which ends up recursively calling get... which leads to the max call stack error.

  5. rusintez commented on Apr 29, 2016

    @rusintez
    rusintez
    on Apr 29, 2016
    Author
    More actions

    👍

  6. rusintez commented on Apr 29, 2016

    @rusintez
    rusintez
    on Apr 29, 2016
    Author
    More actions

    Any ideas about arguments[2] in the last screenshot?

  7. jasnell commented on Apr 29, 2016

    @jasnell
    jasnell
    on Apr 29, 2016
    Member
    More actions

    Yes, I just realized in my comment above I mentioned the wrong argument... the third argument passed to get is the proxy object. Look here .. the get argument is passed three arguments, the target, the property name and the proxy.

  8. its2mc commented on May 2, 2016

    @its2mc
    its2mc
    on May 2, 2016
    More actions

    Hey.. I modified the function a bit and got a random output that I do not fully understand..
    var a = new Proxy({}, {get:(arg)=>(console.log(arg),5)});
    The output is
    image

  9. its2mc commented on May 2, 2016

    @its2mc
    its2mc
    on May 2, 2016
    More actions

    Is it recursive because the object itself is the argument? , is this a loop structure? I mean is the arrow function recursive.

  10. jasnell
    closed this as completedin ba6196fon May 3, 2016
  11. Fishrock123
    added a commit that references this issue on May 4, 2016

    util: fix inspecting of proxy objects

    0bca959
  12. joelostrowski
    added a commit that references this issue on May 4, 2016

    util: fix inspecting of proxy objects

    155c358
  13. sjarmak
    added a commit that references this issue on Jul 27, 2026

    util: fix inspecting of proxy objects

    ba6196f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.