Permalink
Browse files

updated comment

  • Loading branch information...
1 parent ca4b525 commit ba20f11b0f4fa0d441fab5216920db0198836402 @tvcutsem committed Apr 4, 2013
Showing with 6 additions and 2 deletions.
  1. +3 −1 examples/membrane.js
  2. +3 −1 notification/membrane.js
View
@@ -168,6 +168,8 @@
// is used
var dryToWetMaker = function(dryToWetCache, wetToDryCache, dryToWetRef, wetToDryRef) {
+ // This function is called whenever a dry object crosses the membrane
+ // to the wet side. It should convert the dryTarget to its wet counterpart.
return function(dryTarget) {
if (Object(dryTarget) !== dryTarget) {
@@ -272,7 +274,7 @@
return Reflect.isExtensible(wetShadowTarget);
},
- // FIXME: skipped onFreeze, onSeal, onIsFrozen, onIsSealed
+ // FIXME: skipped freeze, seal, isFrozen, isSealed traps
has: function(wetShadowTarget, name) {
if (revoked) throw new Error("revoked");
View
@@ -170,6 +170,8 @@
// is used
var dryToWetMaker = function(dryToWetCache, wetToDryCache, dryToWetRef, wetToDryRef) {
+ // This function is called whenever a dry object crosses the membrane
+ // to the wet side. It should convert the dryTarget to its wet counterpart.
return function(dryTarget) {
if (Object(dryTarget) !== dryTarget) {
@@ -278,7 +280,7 @@
return undefined;
},
- // FIXME: skipped onFreeze, onSeal, onIsFrozen, onIsSealed
+ // FIXME: skipped onFreeze, onSeal, onIsFrozen, onIsSealed traps
onHas: function(wetShadowTarget, name) {
if (revoked) throw new Error("revoked");

0 comments on commit ba20f11

Please sign in to comment.