Skip to main content

Bug Tracker

Side navigation

#10642 closed bug (wontfix)

Opened November 02, 2011 09:29PM UTC

Closed November 02, 2011 10:23PM UTC

Last modified November 03, 2011 12:35AM UTC

Extending Object.prototype breaks raises "has no method 'replace'".

Reported by: Leon Fedotov <fedotov.leon@gmail.com> Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7b2
Keywords: Cc:
Blocked by: Blocking:
Description

Hi, here is an example: http://jsfiddle.net/NeW4j/

I understand that extending Object isn't a good idea but this is pretty bad :(

Attachments (0)
Change History (3)

Changed November 02, 2011 10:23PM UTC by dmethvin comment:1

resolution: → wontfix
status: newclosed

Changed November 02, 2011 10:36PM UTC by Leon Fedotov <fedotov.leon@gmail.com> comment:2

wait but if i want to add support for es5 in older browsers?

Changed November 03, 2011 12:35AM UTC by rwaldron comment:3

Lucky for you, es5 doesn't extend Object.prototype