Bug Tracker

Modify

Ticket #5493 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

isObjectLiteral to work correctly with custom objects with empty prototype

Reported by: rkatic Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: isObjectLiteral, extend Cc:
Blocking: Blocked by:

Description

At cost of 2 additional function calls, we have now support for custom objects which prototype is not changed.

If someone is defining all methods inside the constructor F, isObjectLiteral(new F) will now return false.

 Patch

Change History

comment:1 Changed 4 years ago by rkatic

The patch is already committed fixing #5494. Just close it, thanks.

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 1.4

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.