GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/test/parallel/test-broadcastchannel-custom-inspect.js at main · synapse/node Expand file tree/ Copy pathtest-broadcastchannel-custom-inspect.jsMore file actions 40 lines (34 loc) · 843 Bytes / Copy pathtest-broadcastchannel-custom-inspect.jsFile metadata and controls40 lines (34 loc) · 843 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 'use strict'; require('../common'); const { BroadcastChannel } = require('worker_threads'); const { inspect } = require('util'); const assert = require('assert'); // This test checks BroadcastChannel custom inspect outputs { const bc = new BroadcastChannel('name'); assert.throws(() => bc[inspect.custom].call(), { code: 'ERR_INVALID_THIS', }); bc.close(); } { const bc = new BroadcastChannel('name'); assert.strictEqual(inspect(bc, { depth: -1 }), 'BroadcastChannel'); bc.close(); } { const bc = new BroadcastChannel('name'); assert.strictEqual( inspect(bc), "BroadcastChannel { name: 'name', active: true }" ); bc.close(); } { const bc = new BroadcastChannel('name'); assert.strictEqual( inspect(bc, { depth: null }), "BroadcastChannel { name: 'name', active: true }" ); bc.close(); } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |