Skip to content

Page freezes when using Proxy #3

@still-soda

Description

@still-soda

Page freezes when using Proxy

Description

When writing native JavaScript code in the editor, the page freezes immediately after defining a Proxy object and inputting an empty block {} in the get method. The page becomes unresponsive and no further actions can be performed.

Steps to Reproduce:

  1. Open the editor.
  2. Enter the following code:
    const obj = { a: 20 };
    
    const proxy = new Proxy(obj, {
      get(target, p){} 
    })
  3. Press Enter.
  4. The page freezes and becomes unresponsive.

Expected Behavior

The page should properly handle the Proxy definition without freezing or entering an infinite loop.

Current Behavior

The page freezes without any error message, and it seems like an infinite loop occurs. The developer tools cannot be opened during this process.

Environment Information:

  • Browser: Edge v132.0.2957.55
  • Additional Configuration: The issue occurs while writing native JavaScript using Proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions