0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Joyee Cheung 5e1bf058f4 url: make the context non-enumerable
At the moment we expose the context as a normal property on the
prototype chain of URL or take them from the base URL
which makes them enumerable and considered
by assert libraries even though the context carries path-dependent
information that do not affect the equivalence of these objects.
This patch fixes it in a minimal manner by marking the context
non-enumerable as making it full private would require more
refactoring and can be done in a bigger patch later.

PR-URL: https://github.com/nodejs/node/pull/24218
Refs: https://github.com/nodejs/node/issues/24211
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
2018-11-09 15:53:32 -08:00
..
internal url: make the context non-enumerable 2018-11-09 15:53:32 -08:00
_http_agent.js
_http_client.js
_http_common.js
_http_incoming.js
_http_outgoing.js
_http_server.js
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js stream: add auto-destroy mode 2018-10-30 15:17:40 +01:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js stream: add auto-destroy mode 2018-10-30 15:17:40 +01:00
_tls_common.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
_tls_wrap.js tls: deprecate Server.prototype.setOptions() 2018-10-25 15:34:53 -04:00
.eslintrc.yaml
assert.js assert: remove unused catch bindings 2018-11-06 10:58:42 -05:00
async_hooks.js
buffer.js buffer: move process.binding('buffer') to internalBinding 2018-10-15 19:01:20 +08:00
child_process.js child_process: handle undefined/null for fork() args 2018-11-01 19:41:33 -07:00
cluster.js
console.js console: bind methods from the prototype chain in Console 2018-11-05 20:53:59 -08:00
constants.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
crypto.js src: cache the result of GetOptions() in JS land 2018-11-07 20:40:38 -08:00
dgram.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
dns.js dns: fix inconsistent (hostname vs host) 2018-10-20 21:56:28 -07:00
domain.js async_hooks: remove promise object from resource 2018-10-15 19:40:51 +01:00
events.js events: remove unused catch bindings 2018-11-06 10:58:47 -05:00
fs.js src: prefer param function check over args length 2018-11-07 19:42:06 -08:00
http2.js
http.js
https.js
inspector.js
module.js
net.js net: net.Server.listen() avoid operations on null when fail 2018-11-05 21:02:56 -08:00
os.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
path.js lib: remove useless cwd in posix.resolve 2018-10-30 05:23:52 +01:00
perf_hooks.js
process.js
punycode.js
querystring.js querystring: remove unused catch bindings 2018-11-06 10:59:09 -05:00
readline.js lib: repl multiline history support 2018-11-02 13:56:33 -07:00
repl.js src: cache the result of GetOptions() in JS land 2018-11-07 20:40:38 -08:00
stream.js tools: lint for unused catch bindings 2018-11-06 10:59:27 -05:00
string_decoder.js
sys.js
timers.js timers: run nextTicks after each immediate and timer 2018-10-17 20:38:07 -07:00
tls.js tls: throw if protocol too long 2018-10-23 21:05:47 -07:00
trace_events.js trace_events: forbid tracing modifications from worker threads 2018-10-24 11:20:35 -03:00
tty.js
url.js
util.js util: treat format arguments equally 2018-10-17 19:56:43 +02:00
v8.js buffer: move process.binding('buffer') to internalBinding 2018-10-15 19:01:20 +08:00
vm.js src: cache the result of GetOptions() in JS land 2018-11-07 20:40:38 -08:00
worker_threads.js
zlib.js zlib: do not leak on destroy 2018-10-23 17:59:17 +02:00