Skip to content

Commit 0c55a1a

Browse files
committed
Add tests for objects with null prototype
1 parent 7612317 commit 0c55a1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,13 @@
852852
var obj = NaN;
853853
test(done, obj);
854854
});
855+
856+
it('null Prototype', function (done) {
857+
var obj = Object.create(null);
858+
obj.test = Object.create(null);
859+
obj.test.test = 1;
860+
test(done, obj);
861+
});
855862
});
856863

857864
}(this));

0 commit comments

Comments
 (0)