Skip to content

Commit 8cf5a90

Browse files
author
Bradley Meck
committed
WeakMap/WeakPointer doc
1 parent 8fa7196 commit 8cf5a90

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ Files are in __lib__ directory
5555

5656
Partial implementation of ES Harmony Proxy API.
5757

58+
####weakmap.js
59+
60+
Implementation of ES Harmony WeakMap API.
61+
62+
####weakpointer.js
63+
64+
Implementation of ES Harmony WeakPointer API.
65+
5866
####utils.js
5967

6068
> ##ReadOnly(obj,mask)

lib/weakmap.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
module.exports = require("./overload").EphemeronTable
1+
var EphemeronTable = require("./overload").EphemeronTable
2+
3+
module.exports = function WeakMap() {
4+
var backer = new EphemeronTable
5+
this.set = backer.set
6+
this.get = backer.get
7+
return this
8+
}

0 commit comments

Comments
 (0)