0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Timothy Gu 06ecf4dec7 url: define @@toStringTag as a data property
Even though this is not fully Web IDL spec-compliant, it is arguably the
best we can do. Following the spec would mean non-trivial performance
deterioration (10% when parsing a medium-length URL), while the current
getter behavior is not adopted by any implementer, and it causes some
spec ambiguity when the getter is called with !(this instanceof URL).

This commit adopts Chrome's behavior, and is consistent with
ECMAScript-defined classes while providing reasonable behaviors for
corner cases as well. Until the Web IDL spec is changed one way or
another, this is the way to go.

PR-URL: https://github.com/nodejs/node/pull/10906
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2017-01-28 08:27:15 -08:00
..
internal url: define @@toStringTag as a data property 2017-01-28 08:27:15 -08:00
_debug_agent.js
_debugger.js debugger: call this.resume() after this.run() 2016-12-05 14:25:39 -05:00
_http_agent.js http: eliminate capture of ClientRequest in Agent 2017-01-06 10:07:32 -08:00
_http_client.js http: throw an error for unexpected agent values 2017-01-18 10:24:28 -05:00
_http_common.js http: optimize default method case 2017-01-13 16:11:18 -05:00
_http_incoming.js http: try to avoid lowercasing incoming headers 2017-01-11 12:54:41 -05:00
_http_outgoing.js http: optimize default method case 2017-01-13 16:11:18 -05:00
_http_server.js http: misc optimizations and style fixes 2017-01-11 12:54:45 -05:00
_linklist.js
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js tools: enforce linebreak after ternary operators 2016-12-22 20:27:59 -08:00
_stream_transform.js src: fixes misplaced comment 2016-09-30 09:47:09 -07:00
_stream_wrap.js test,lib,benchmark: match function names 2016-10-19 22:20:27 -07:00
_stream_writable.js stream: avoid instanceof 2017-01-11 12:55:04 -05:00
_tls_common.js crypto: freelist_max_len is gone in OpenSSL 1.1.0 2017-01-23 15:17:07 +09:00
_tls_legacy.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
_tls_wrap.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
.eslintrc.yaml tools: rename eslintrc to an undeprecated format 2017-01-18 09:48:52 +05:30
assert.js assert, tools: enforce strict (not)equal in eslint 2017-01-11 14:19:29 +00:00
buffer.js buffer: improve compare() performance 2017-01-25 01:42:42 -05:00
child_process.js child_process: add string shortcut for fork stdio 2017-01-27 12:06:48 -08:00
cluster.js cluster: refactor module into multiple files 2017-01-13 17:01:07 -05:00
console.js console: name anonymous functions 2016-10-16 22:01:02 +02:00
constants.js constants: errors -> errno 2016-11-29 07:33:24 -05:00
crypto.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
dgram.js dgram: use Buffer.alloc(0) for zero-size buffers 2016-10-06 15:27:52 -07:00
dns.js dns: implement {ttl: true} for dns.resolve4() 2016-11-18 22:01:11 +01:00
domain.js test,lib,benchmark: match function names 2016-10-19 22:20:27 -07:00
events.js events: avoid emit() eager deopt 2017-01-05 12:33:10 -08:00
fs.js fs: remove unused parameter for encodeRealpathResult 2017-01-18 22:26:44 +08:00
http.js http: name anonymous functions in http 2016-10-18 15:38:43 -07:00
https.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
module.js fs: export realpathCacheKey from internal/fs 2016-11-16 20:22:18 +01:00
net.js test,net: add tests for server.connections 2017-01-14 20:57:26 -08:00
os.js benchmark,lib,test: adjust for linting 2017-01-06 14:36:01 -08:00
path.js
process.js
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js querystring: improve unescapeBuffer performance 2017-01-25 02:22:26 -05:00
readline.js readline: refactor construct Interface 2017-01-13 22:49:35 +08:00
repl.js repl: remove workaround for function redefinition 2017-01-26 22:46:18 +01:00
stream.js
string_decoder.js string_decoder: align UTF-8 handling with V8 2017-01-26 22:46:18 +01:00
sys.js
timers.js timers: fix handling of cleared immediates 2016-12-14 10:10:22 -05:00
tls.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
tty.js
url.js url: stop exporting originFor() 2017-01-27 07:35:36 -08:00
util.js test,util: remove lint workarounds 2017-01-16 10:40:26 -08:00
v8.js lib,src: support values > 4GB in heap statistics 2016-12-11 14:45:52 +01:00
vm.js vm: improve performance of vm.runIn*() 2017-01-18 08:27:10 -08:00
zlib.js zlib: be strict about what strategies are accepted 2017-01-25 14:07:43 -08:00