Permalink
Browse files

Some cleanup.

  • Loading branch information...
1 parent ee1b5b4 commit 4089cabc6c8de53fe059dfa4670fa148c4918e5f @mbebenita mbebenita committed May 18, 2012
Showing with 5 additions and 6 deletions.
  1. BIN src/avm2/generated/builtin.abc
  2. +5 −6 src/avm2/runtime.js
Binary file not shown.
View
@@ -360,18 +360,17 @@ function getProperty(obj, multiname, bind) {
}
if (resolved) {
- var prop = obj[resolved.getQualifiedName()];
+ var value = obj[resolved.getQualifiedName()];
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
- return new MethodClosure(obj, prop);
+ return new MethodClosure(obj, value);
}
-
- return prop;
+ return value;
}
return undefined;

0 comments on commit 4089cab

Please sign in to comment.