Bug 13424

Summary: Extends doesn't work correctly with objects that can be created without new
Product: swfdec Reporter: Pekka Lampila <pekka.lampila>
Component: libraryAssignee: swfdec ml <swfdec>
Status: NEW --- QA Contact: swfdec ml <swfdec>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pekka Lampila 2007-11-28 06:24:02 UTC
Extends action doesn't work correctly for objects that can be created without the new keyword, like Date and Number.

Here is a test case:
 
Foo = function () {
  trace (this);
  super (1983, 11, 9);
  trace (this);
};
 
asm {
  push "Foo"
  getvariable
  push "Date"
  getvariable
  extends
};
 
var a = new Foo ();
trace (a);
 
loadMovie ("FSCommand:quit", "");

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.