Skip to content

Error When Freezing Array.prototype #244

@BikashMcKinsey

Description

@BikashMcKinsey

In a particular file, the Array.prototype is being frozen which is causing compatibility issues. The issue arises when the at method is added to the Array.prototype after it has been frozen, resulting in an error.

Steps to reproduce:

  1. Run the application.
  2. Observe the error related to the at method.

Expected behavior:
The application should run without errors.

Actual behavior:
An error occurs when running the application due to the Array.prototype being frozen before the at method is added.

Proposed solution:
Modify the code to conditionally add the at method to the Array.prototype only if it doesn't already exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions