From e3415ef9dee1fb6ba7f488d75c873896a0236481 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 26 Jan 2013 02:24:05 -0700 Subject: [PATCH 1/3] test that we don't return prototype methods --- tests/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test.js b/tests/test.js index a3df772..9e02494 100644 --- a/tests/test.js +++ b/tests/test.js @@ -9,6 +9,9 @@ ; function runTest(storage) { + // should not return prototype properties + assert.strictEqual(null, Object.getItem('key')); + assert.strictEqual(0, Object.keys(storage).length); assert.strictEqual(0, storage.length); From bdda16acf335a66684fda2646af3ef4bce8fab66 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 27 Jul 2013 22:13:08 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01f2065..011ad7b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -DOMStorage +DOMStorage - sessionStorage & localStorage for NodeJS === An inefficient, but as W3C-compliant as possible using only pure JavaScript, `DOMStorage` implementation. From 29642a46cc5fc982f46d344017e94b5b76c8eadf Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 27 Jul 2013 22:13:26 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 011ad7b..55556db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -DOMStorage - sessionStorage & localStorage for NodeJS +sessionStorage & localStorage for NodeJS === An inefficient, but as W3C-compliant as possible using only pure JavaScript, `DOMStorage` implementation.