Skip to main content

Bug Tracker

Side navigation

#4192 closed bug (wontfix)

Opened February 19, 2009 01:18PM UTC

Closed March 25, 2011 06:12PM UTC

Last modified March 14, 2012 02:49PM UTC

Extend and RegExp

Reported by: braillane Owned by: flesler
Priority: major Milestone: 1.3.2
Component: core Version: 1.3.1
Keywords: Cc: braillane
Blocked by: Blocking:

I try to clone an object but there's a bug. In my Original object i have a RegExp. When i clone this object, my RegExp is transformed into a ampty object... My RegExp become unusable...

this is a code showing the problem :

defaultopt = { text:"blabla",regexp : new RegExp("[c]")};

opt = {regexp : new RegExp("[d]")};

var target;


Attachments (0)
Change History (5)

Changed February 19, 2009 08:54PM UTC by flesler comment:1

cc: → braillane
component: unfilledcore
owner: → flesler
status: newassigned

I think I know how to fix this easily, will do asap.

Changed February 20, 2009 12:08AM UTC by dmethvin comment:2


It seems like you'd need to special-case all the builtin objects because they don't have standardized constructors or clone methods.

Changed October 02, 2009 02:08AM UTC by dmethvin comment:3

See also #4770.

Changed March 25, 2011 06:12PM UTC by dmethvin comment:4

keywords: → needsdocs
resolution: → wontfix
status: assignedclosed

Due to performance/complexity issues I think we just need to document this.

Changed May 20, 2011 07:07PM UTC by dmethvin comment:5

keywords: needsdocs