changeset 32:bda50240b295

Changed getProperty() to not use lookupProperty().
author Atul Varma <varmaa@toolness.com>
date Mon, 22 Jun 2009 13:32:03 -0700
parents d5087fb2367d
children cb058fac14fa
files tcb.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tcb.js	Mon Jun 22 13:29:45 2009 -0700
+++ b/tcb.js	Mon Jun 22 13:32:03 2009 -0700
@@ -128,8 +128,8 @@
     case "__parent__":
       return null;
     default:
-      // TODO: This will bypass any getters/setters.
-      return this._maybeWrap(lookupProperty(wrappee, id));
+      // TODO: Is this secure?
+      return this._maybeWrap(wrappee[id]);
     }
   },