Skip to content

Commit

Permalink
ACTIONSCRIPT: Add string class to avm
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Aug 28, 2018
1 parent 915d1f1 commit d77846b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aurora/actionscript/avm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "src/aurora/actionscript/object.h"
#include "src/aurora/actionscript/function.h"
#include "src/aurora/actionscript/array.h"
#include "src/aurora/actionscript/string.h"

namespace Aurora {

Expand All @@ -49,6 +50,8 @@ AVM::AVM() {
_variables["_global"] = ObjectPtr(new Object());
_variables["Array"] = ObjectPtr(new DummyFunction());
_variables["Array"].asObject()->setMember("prototype", ObjectPtr(new Array()));
_variables["String"] = ObjectPtr(new DummyFunction());
_variables["String"].asObject()->setMember("prototype", ObjectPtr(new String()));
}

void AVM::storeRegister(Variable value, byte index) {
Expand Down

0 comments on commit d77846b

Please sign in to comment.