[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9507: NEWCLASS opcode: Use the base
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9507: NEWCLASS opcode: Use the base class when constructing the new class. |
Date: |
Fri, 22 Aug 2008 01:44:20 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9507
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Fri 2008-08-22 01:44:20 +0800
message:
NEWCLASS opcode: Use the base class when constructing the new class.
modified:
libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp 2008-08-21 17:09:23 +0000
+++ b/libcore/vm/Machine.cpp 2008-08-21 17:44:20 +0000
@@ -1371,7 +1371,7 @@
LOG_DEBUG_AVM("Creating new class id=%u
name=%s",c->getName(),mPoolObject->mStringPool[c->getName()]);
as_object* base_class = pop_stack().to_object().get();
- as_object* new_class = new as_object();
+ as_object* new_class = new as_object(base_class);
//Create the class.
abc_function* constructor = new
abc_function(c->getConstructor()->getBody(),this);
new_class->init_member(NSV::PROP_uuCONSTRUCTORuu,as_value(constructor),0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9507: NEWCLASS opcode: Use the base class when constructing the new class.,
Tom Stellard <=