0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
vladimir 320f433dcd util: support classes in util.deprecate()
Classes cannot be instantiated without new, but util.deprecate()
uses Function.prototype.apply(). This commit uses new.target to
detect constructor calls, allowing classes to be deprecated.

PR-URL: https://github.com/nodejs/node/pull/7690
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-08-04 11:44:40 -04:00
..
internal util: support classes in util.deprecate() 2016-08-04 11:44:40 -04:00
_debug_agent.js debugger: make listen address configurable 2016-06-30 13:41:51 +02:00
_debugger.js debugger: remove obsolete setTimeout 2016-06-07 13:32:05 -07:00
_http_agent.js tls,https: respect address family when connecting 2016-05-28 22:49:36 +02:00
_http_client.js http: wait for both prefinish/end to keepalive 2016-06-06 13:34:11 -04:00
_http_common.js http: optimize checkInvalidHeaderChar() 2016-06-14 15:13:00 -04:00
_http_incoming.js http: fix no dumping after maybeReadMore 2016-06-15 12:50:19 -04:00
_http_outgoing.js http: replace finish() callback with arrow function 2016-06-27 08:26:44 -07:00
_http_server.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
_stream_transform.js stream: 'data' argument on callback of Transform._flush() 2016-06-09 11:06:01 +02:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js stream: improve unimplemented _write() error 2016-07-21 11:24:26 -04:00
_tls_common.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
_tls_legacy.js lib: replace legacy uses of __defineGetter__ 2016-05-16 17:01:34 -07:00
_tls_wrap.js buffer: introduce latin1 encoding term 2016-06-07 13:51:14 -06:00
.eslintrc tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
assert.js assert: remove unneeded arguments special handling 2016-06-27 16:58:12 -07:00
buffer.js buffer: speed up swap16/32, add swap64 2016-06-27 14:38:37 -06:00
child_process.js child_process: support stdio option in fork() 2016-07-22 11:57:01 -04:00
cluster.js cluster: support stdio option for workers 2016-08-01 15:08:42 -04:00
console.js console: timeEnd() with no label emits warning 2016-04-25 08:28:23 -07:00
constants.js src: refactor require('constants') 2016-05-17 11:05:18 -07:00
crypto.js crypto,tls: perf improvements for crypto and tls getCiphers 2016-06-21 10:03:08 -07:00
dgram.js dgram: generalized send queue to handle close 2016-07-13 17:49:04 +02:00
dns.js dns: Use object without protoype for map 2016-03-22 11:13:03 -07:00
domain.js domain: add message for dispose deprecation 2016-06-07 00:27:42 -04:00
events.js events: pass the original listener added by once 2016-04-29 12:10:50 -07:00
fs.js fs: validate args of truncate functions in js 2016-07-22 03:58:33 +05:30
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
module.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
net.js lib,benchmark,test: implement consistent braces 2016-07-12 10:33:29 -07:00
os.js os: deprecate tmpDir() in favour of tmpdir() 2016-06-30 14:52:13 +02:00
path.js path: fix basename() regressions 2016-05-18 02:12:28 -04:00
process.js
punycode.js punycode: update to v2.0.0 2016-06-17 17:03:49 +02:00
querystring.js benchmark,test,lib: remove extra spaces 2016-05-11 23:18:16 -07:00
readline.js readline: allow passing prompt to constructor 2016-06-25 12:10:28 -05:00
repl.js repl: Use displayErrors for SyntaxError 2016-07-27 21:26:06 +05:30
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js string_decoder: fix bad utf8 character handling 2016-06-23 23:18:10 -04:00
sys.js
timers.js timers: fix cleanup of nested same-timeout timers 2016-07-29 09:48:45 -07:00
tls.js tls: avoid calling Buffer.byteLength multiple times 2016-06-21 10:53:25 -07:00
tty.js tty: use blocking mode on OS X 2016-06-01 18:57:45 -04:00
url.js net: use icu's punycode implementation 2016-06-29 17:10:53 -07:00
util.js util: fix formatting of objects with SIMD enabled 2016-08-02 15:00:59 +02:00
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js vm: add ability to break on sigint/ctrl+c 2016-06-18 20:44:16 +02:00
zlib.js zlib: move constants into zlib.constants 2016-06-11 17:24:35 -07:00