add websocket server to this dir. fix stuff for client

This commit is contained in:
gib committed 2024-10-30 15:12:52 -05:00
1 parent f8152c6db8
commit 4886bc5b1f
3058 files changed
+1201180 -2

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
'use strict';
var test = require('tape');
var hasProto = require('../');
test('hasProto', function (t) {
var result = hasProto();
t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')');
var obj = { __proto__: null };
if (result) {
t.notOk('toString' in obj, 'null object lacks toString');
} else {
t.ok('toString' in obj, 'without proto, null object has toString');
t.equal(obj.__proto__, null); // eslint-disable-line no-proto
}
t.end();
});