/third_party/node/test/parallel/ |
D | test-readline-csi.js | 30 const writable = new TestWritable(); constant 32 assert.strictEqual(readline.clearScreenDown(writable), true); 33 assert.deepStrictEqual(writable.data, CSI.kClearScreenDown); 34 assert.strictEqual(readline.clearScreenDown(writable, common.mustCall()), true); 38 readline.clearScreenDown(writable, null); 48 writable.data = ''; 49 assert.strictEqual(readline.clearLine(writable, -1), true); 50 assert.deepStrictEqual(writable.data, CSI.kClearToLineBeginning); 52 writable.data = ''; 53 assert.strictEqual(readline.clearLine(writable, 1), true); [all …]
|
D | test-stream-writable-ended-state.js | 8 const writable = new stream.Writable(); constant 10 writable._write = (chunk, encoding, cb) => { 11 assert.strictEqual(writable._writableState.ended, false); 12 assert.strictEqual(writable._writableState.writable, undefined); 13 assert.strictEqual(writable.writableEnded, false); 17 assert.strictEqual(writable._writableState.ended, false); 18 assert.strictEqual(writable._writableState.writable, undefined); 19 assert.strictEqual(writable.writable, true); 20 assert.strictEqual(writable.writableEnded, false); 22 writable.end('testing ended state', common.mustCall(() => { [all …]
|
D | test-stream-writableState-uncorked-bufferedRequestCount.js | 7 const writable = new stream.Writable(); constant 9 writable._writev = common.mustCall((chunks, cb) => { 14 writable._write = common.mustCall((chunk, encoding, cb) => { 19 writable.cork(); 20 assert.strictEqual(writable._writableState.corked, 1); 21 assert.strictEqual(writable._writableState.bufferedRequestCount, 0); 24 writable.cork(); 25 assert.strictEqual(writable._writableState.corked, 2); 28 writable.write('first chunk'); 29 assert.strictEqual(writable._writableState.bufferedRequestCount, 1); [all …]
|
D | test-stream-writable-write-writev-finish.js | 11 const writable = new stream.Writable(); constant 13 writable._write = (chunks, encoding, cb) => { 17 writable.on('finish', common.mustNotCall()); 18 writable.on('prefinish', common.mustNotCall()); 19 writable.on('error', common.mustCall((er) => { 23 writable.end('test'); 27 const writable = new stream.Writable(); constant 29 writable._write = (chunks, encoding, cb) => { 33 writable.on('finish', common.mustNotCall()); 34 writable.on('prefinish', common.mustNotCall()); [all …]
|
D | test-stream-writable-end-cb-error.js | 9 const writable = new stream.Writable(); constant 11 writable._write = (chunk, encoding, cb) => { 15 writable.on('error', common.mustCall((err) => { 18 writable.write('asd'); 19 writable.end(common.mustCall((err) => { 22 writable.end(common.mustCall((err) => { 29 const writable = new stream.Writable(); constant 31 writable._write = (chunk, encoding, cb) => { 36 writable.end('asd', common.mustCall((err) => { 41 writable.on('error', common.mustCall((err) => { [all …]
|
D | test-stream-writable-write-cb-twice.js | 7 const writable = new Writable({ constant 13 writable.write('hi'); 14 writable.on('error', common.expectsError({ 22 const writable = new Writable({ constant 30 writable.write('hi'); 31 writable.on('error', common.expectsError({ 39 const writable = new Writable({ constant 47 writable.write('hi'); 48 writable.on('error', common.expectsError({
|
D | test-stream-writable-write-cb-error.js | 13 const writable = new Writable({ constant 18 writable.on('error', common.mustCall(() => { 21 writable.write('hi', common.mustCall(() => { 29 const writable = new Writable({ constant 34 writable.on('error', common.mustCall(() => { 37 writable.write('hi', common.mustCall(() => { 44 const writable = new Writable({ constant 50 writable.on('error', common.mustCall()); 54 while (writable.write('a'))
|
D | test-stream-writableState-ending.js | 8 const writable = new stream.Writable(); constant 11 assert.strictEqual(writable._writableState.ending, ending); 12 assert.strictEqual(writable._writableState.finished, finished); 13 assert.strictEqual(writable._writableState.ended, ended); 16 writable._write = (chunk, encoding, cb) => { 22 writable.on('finish', () => { 27 const result = writable.end('testing function end()', () => { 33 assert.strictEqual(result, writable);
|
D | test-stream-writable-finished-state.js | 8 const writable = new stream.Writable(); constant 10 writable._write = (chunk, encoding, cb) => { 12 assert.strictEqual(writable._writableState.finished, false); 16 writable.on('finish', common.mustCall(() => { 17 assert.strictEqual(writable._writableState.finished, true); 20 writable.end('testing finished state', common.mustCall(() => { 21 assert.strictEqual(writable._writableState.finished, true);
|
D | test-stream-writable-finished.js | 15 const writable = new Writable(); constant 17 writable._write = (chunk, encoding, cb) => { 19 assert.strictEqual(writable.writableFinished, false); 23 writable.on('finish', common.mustCall(() => { 24 assert.strictEqual(writable.writableFinished, true); 27 writable.end('testing finished state', common.mustCall(() => { 28 assert.strictEqual(writable.writableFinished, true);
|
D | test-stream-uint8array.js | 15 const writable = new Writable({ constant 28 writable.write(ABC); 29 writable.end(DEF); 35 const writable = new Writable({ constant 46 writable.end(ABC); 53 const writable = new Writable({ constant 68 writable.write(ABC); 69 writable.write(DEF); 70 writable.end(GHI);
|
D | test-stream-writable-writable.js | 11 assert.strictEqual(w.writable, true); 13 assert.strictEqual(w.writable, false); 22 assert.strictEqual(w.writable, true); 24 assert.strictEqual(w.writable, false); 33 assert.strictEqual(w.writable, false); 45 assert.strictEqual(w.writable, true); 47 assert.strictEqual(w.writable, false);
|
D | test-stream-writable-end-multiple.js | 8 const writable = new stream.Writable(); constant 9 writable._write = (chunk, encoding, cb) => { 13 writable.end('testing ended state', common.mustCall()); 14 writable.end(common.mustCall()); 15 writable.on('finish', common.mustCall(() => { 17 writable.end(common.mustCall((err) => {
|
D | test-vm-global-property-interceptors.js | 18 writable: true, property 49 a: { value: 'a', writable: true, enumerable: true, configurable: true }, property 50 b: { value: 'b', writable: false, enumerable: false, configurable: false }, property 51 c: { value: 'c', writable: true, enumerable: true, configurable: false }, property 52 d: { value: 'd', writable: false, enumerable: false, configurable: false }, property 53 e: { value: 'e', writable: false, enumerable: false, configurable: true }, property 56 writable: false, property 79 writable: false, property 86 writable: false, property
|
/third_party/jerryscript/tests/jerry/ |
D | object-define-properties.js | 19 writable: true property 23 writable: false property 27 writable: false property 64 writable: true property 88 writable: true property 96 writable: false property 113 writable: true, property 130 writable: true, property 134 return { value : 2, writable : true }; 138 writable: true, property [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | defineProperty(target=es5).js | 50 writable: true, property 56 writable: true, property 62 writable: true, property 68 writable: true, property 74 writable: true, property 80 writable: true, property 86 writable: true, property 93 writable: true, property 104 writable: true, property 117 writable: true, property [all …]
|
D | checkOtherObjectAssignProperty.types | 82 const obj = { value: 42, writable: true }; 83 >obj : { value: number; writable: boolean; } 84 >{ value: 42, writable: true } : { value: number; writable: boolean; } 87 >writable : boolean 97 >obj : { value: number; writable: boolean; } 107 Object.defineProperty(exports, str, { value: 42, writable: true }); 108 >Object.defineProperty(exports, str, { value: 42, writable: true }) : any 114 >{ value: 42, writable: true } : { value: number; writable: true; } 117 >writable : true 124 Object.defineProperty(exports, propName, { value: 42, writable: true }); [all …]
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | proxy_get_own_property_descriptor.js | 54 writable: true, property 62 writable: false, property 98 assert(configurable_desc.writable == configurable_obj.writable); 104 assert(nonconfigurable_obj.writable == nonconfigurable_desc.writable); 110 writable: false } property 115 assert(other_obj.writable == proxied_obj.writable); 122 assert(other_obj2.writable == configurable_desc.writable); 129 assert(other_obj3.writable == nonconfigurable_desc.writable); 212 writable: false, property 219 assert(new_obj.writable == conf_proxied.writable); [all …]
|
/third_party/node/deps/npm/node_modules/duplexify/ |
D | index.js | 38 var Duplexify = function(writable, readable, opts) { argument 39 if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) 59 if (writable) this.setWritable(writable) 65 Duplexify.obj = function(writable, readable, opts) { argument 69 return new Duplexify(writable, readable, opts) 80 Duplexify.prototype.setWritable = function(writable) { argument 84 if (writable && writable.destroy) writable.destroy() 88 if (writable === null || writable === false) { 94 var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) property 109 this._writable = writable [all …]
|
/third_party/node/deps/npm/node_modules/prr/ |
D | test.js | 15 , writable : false property 35 , writable : false property 59 , writable : false property 82 , writable : false property 91 , writable : false property 99 , writable : false property 108 , writable : true property 116 , writable : true property 136 , writable : false property 149 , writable : false property [all …]
|
/third_party/node/deps/npm/node_modules/duplexer3/ |
D | index.js | 5 function DuplexWrapper(options, writable, readable) { argument 7 readable = writable; 8 writable = options; 18 this._writable = writable; 24 writable.once("finish", function() { 29 writable.end(); 44 writable.on("error", function(err) { 72 module.exports = function duplex2(options, writable, readable) { argument 73 return new DuplexWrapper(options, writable, readable);
|
/third_party/node/lib/internal/streams/ |
D | end-of-stream.js | 23 return typeof stream.writable === 'boolean' || 61 const writable = options.writable || 62 (options.writable !== false && isWritable(stream)); 69 if (!stream.writable) onfinish(); 81 isWritable(stream) === writable 106 if (willEmitClose && (!stream.writable || writable)) return; 107 if (!writable || writableFinished) callback.call(stream); 119 if (writable && !writableFinished) { 137 } else if (writable && !wState) { // legacy streams 159 (!writable || (wState && wState.finished)) &&
|
/third_party/node/deps/npm/node_modules/end-of-stream/ |
D | index.js | 22 var writable = opts.writable || (opts.writable !== false && stream.writable); 25 if (!stream.writable) onfinish(); 29 writable = false; 35 if (!writable) callback.call(stream); 48 if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close')); 60 } else if (writable && !ws) { // legacy streams
|
/third_party/node/deps/npm/node_modules/readable-stream/lib/internal/streams/ |
D | end-of-stream.js | 32 var writable = opts.writable || opts.writable !== false && stream.writable; 35 if (!stream.writable) onfinish(); 41 writable = false; 51 if (!writable) callback.call(stream); 66 if (writable && !writableEnded) { 80 } else if (writable && !stream._writableState) {
|
/third_party/node/deps/npm/node_modules/object.getownpropertydescriptors/test/ |
D | tests.js | 8 writable: false property 14 writable: true property 28 writable: true property 70 writable: true property 72 writable: writableDescriptor property 84 writable: true property 99 writable: true property 102 writable: writableDescriptor property
|