[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9561: NEWCLASS opcode: Construct the
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9561: NEWCLASS opcode: Construct the new class with the correct base class. |
Date: |
Sat, 13 Sep 2008 11:22:53 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9561
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Sat 2008-09-13 11:22:53 +0800
message:
NEWCLASS opcode: Construct the new class with the correct base class.
modified:
libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp 2008-09-12 01:08:51 +0000
+++ b/libcore/vm/Machine.cpp 2008-09-13 03:22:53 +0000
@@ -1378,6 +1378,8 @@
as_object* base_class = pop_stack().to_object().get();
as_object* new_class = c->getPrototype();
+
+ new_class->set_prototype(base_class);
//Create the class.
abc_function* static_constructor = new
abc_function(c->getStaticConstructor(),this);
abc_function* constructor = new
abc_function(c->getConstructor(),this);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9561: NEWCLASS opcode: Construct the new class with the correct base class.,
Tom Stellard <=