Fix Javascript generator for smartpointeraccessed variables.
This commit is contained in:
parent
8bf95c4356
commit
1a04e488bc
1 changed files with 4 additions and 0 deletions
|
|
@ -673,6 +673,10 @@ int JSEmitter::emitWrapperFunction(Node *n) {
|
|||
ret = emitFunction(n, is_member, is_static);
|
||||
} else if (Cmp(kind, "variable") == 0) {
|
||||
bool is_static = GetFlag(state.variable(), IS_STATIC);
|
||||
// HACK: smartpointeraccessed static variables are not treated as statics
|
||||
if (GetFlag(n, "allocate:smartpointeraccess")) {
|
||||
is_static = false;
|
||||
}
|
||||
bool is_setter = GetFlag(n, "wrap:issetter");
|
||||
if (is_setter) {
|
||||
bool is_member = GetFlag(n, "memberset");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue