Skip to main content

Bug Tracker

Side navigation

#12918 closed bug (wontfix)

Opened November 19, 2012 03:49PM UTC

Closed November 19, 2012 10:33PM UTC

TypeError: matchExpr[type].exec is not a function

Reported by: shark@1kdigital.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description
<script src="js/jquery-1.8.2.js"></script>
<script>
Object.prototype.mergeObjects = function() {
	return this;
}
...
myObject.mergeObjects(otherObject);
</script>

This will produce error:

TypeError: matchExpr[type].exec is not a function

if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||

jquery-1.8.2.js (line 4717)

Attachments (0)
Change History (2)

Changed November 19, 2012 04:00PM UTC by shark@1kdigital.com comment:1

Sorry, the version is 1.8.2 not 1.8.3.

Changed November 19, 2012 10:33PM UTC by timmywil comment:2

resolution: → wontfix
status: newclosed

jQuery does not support altering native prototypes. http://docs.jquery.com/Won't_Fix