summaryrefslogtreecommitdiff
path: root/test/test-async.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-async.js')
-rwxr-xr-xtest/test-async.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-async.js b/test/test-async.js
index 2b26b51..e27dd33 100755
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -4296,6 +4296,14 @@ exports['memoize'] = {
},
'avoid __proto__ key return undefined': function (test) {
+ // Skip test if there is a Object.create bug (node 0.10 and some Chrome 30x versions)
+ var x = Object.create(null);
+ /* jshint proto: true */
+ x.__proto__ = 'foo';
+ if (x.__proto__ !== 'foo') {
+ return test.done();
+ }
+
test.expect(1);
var fn = async.memoize(function(name, callback) {
setTimeout(function(){