Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated comment

  • Loading branch information...
commit ba20f11b0f4fa0d441fab5216920db0198836402 1 parent ca4b525
@tvcutsem authored
Showing with 6 additions and 2 deletions.
  1. +3 −1 examples/membrane.js
  2. +3 −1 notification/membrane.js
View
4 examples/membrane.js
@@ -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
4 notification/membrane.js
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.