Bug 13424 - Extends doesn't work correctly with objects that can be created without new
Summary: Extends doesn't work correctly with objects that can be created without new
Status: NEW
Alias: None
Product: swfdec
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: swfdec ml
QA Contact: swfdec ml
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 06:24 UTC by Pekka Lampila
Modified: 2007-11-28 06:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.