Skip to content

Commit

Permalink
ACTIONSCRIPT: Add proto creation for actionExtends
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Feb 23, 2019
1 parent 36fe505 commit a2319d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aurora/actionscript/asbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ void ASBuffer::actionExtends() {

ObjectPtr scriptObject(new Object(superClass->getMember("prototype").asObject().get()));
scriptObject->setMember("constructor", superClass);
scriptObject->setMember("proto", superClass->getMember("prototype").asObject());

subClass->setMember("prototype", scriptObject);

Expand Down

0 comments on commit a2319d3

Please sign in to comment.