Changeset 79a0317 for imaps-frontend/node_modules/has-proto/README.md
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/has-proto/README.md
r0c6b92a r79a0317 17 17 18 18 assert.equal(typeof hasProto(), 'boolean'); 19 20 var hasProtoAccessor = require('has-proto/accessor')(); 21 if (hasProtoAccessor) { 22 assert.equal([].__proto__, Array.prototype); 23 } else { 24 assert(!('__proto__' in Object.prototype)); 25 } 26 27 var hasProtoMutator = require('has-proto/mutator'); 28 var obj = {}; 29 assert('toString' in obj); 30 31 obj.__proto__ = null; 32 if (hasProtoMutator) { 33 assert(!('toString' in obj)); 34 } else { 35 assert('toString' in obj); 36 assert.equal(obj.__proto__, null); 37 } 19 38 ``` 20 39
Note:
See TracChangeset
for help on using the changeset viewer.