Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Some cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbebenita committed May 18, 2012
1 parent ee1b5b4 commit 4089cab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Binary file modified src/avm2/generated/builtin.abc
Binary file not shown.
11 changes: 5 additions & 6 deletions src/avm2/runtime.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -360,18 +360,17 @@ function getProperty(obj, multiname, bind) {
} }


if (resolved) { if (resolved) {
var prop = obj[resolved.getQualifiedName()]; var value = obj[resolved.getQualifiedName()];


if (tracePropertyAccess.value) { if (tracePropertyAccess.value) {
print("getProperty: multiname: " + resolved + " some value: " + !!prop); print("getProperty: multiname: " + resolved + " some value: " + !!value);
} }


if (bind && prop && prop.isMethod) { if (bind && value && value.isMethod) {
// OPTIMIZEME: could optimize to a separate function // OPTIMIZEME: could optimize to a separate function
return new MethodClosure(obj, prop); return new MethodClosure(obj, value);
} }

return value;
return prop;
} }


return undefined; return undefined;
Expand Down

0 comments on commit 4089cab

Please sign in to comment.