Fedor Indutny
8ea4487ca7
process: add process.memoryUsage.external
...
PR-URL: https://github.com/nodejs/node/pull/9587
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-31 17:07:44 -05:00
Michaël Zasso
f77fcf893f
deps: cherry-pick baba152 from V8 upstream
...
Original commit message:
fix stepping out of across throwing.
R=jgruber@chromium.org
BUG=v8:5559
Review-Url: https://codereview.chromium.org/2445233004
Cr-Commit-Position: refs/heads/master@{#40549}
PR-URL: https://github.com/nodejs/node/pull/10689
Fixes: https://github.com/nodejs/node/issues/9175
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:44 -05:00
Matthew Avery
fdc373d639
deps: fix compile bug in v8/lookup.h
...
Fixed a small error that manifests when --debug is specified. This
seems to have been introduced during the backport #9422 .
Ref: https://github.com/nodejs/node/pull/9422
PR-URL: https://github.com/nodejs/node/pull/10525
Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com >
Reviewed-By: mhdawson - Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:44 -05:00
Myles Borins
3f61aae59d
Working on v6.9.6
...
PR-URL: https://github.com/nodejs/node/pull/11081
2017-01-31 17:06:40 -05:00
Myles Borins
37a8051594
2017-01-31, Version 6.9.5 'Boron' (LTS)
...
This is a security release of the 'Boron' release line to upgrade
OpenSSL to version 1.0.2k
Although the OpenSSL team have determined a maximum severity rating
of "moderate", the Node.js crypto team (Ben Noordhuis, Shigeki Ohtsu
and Fedor Indutny) have determined the impact to Node users is "low".
Details on this determination can be found on the Nodejs.org website
https://nodejs.org/en/blog/vulnerability/openssl-january-2017/
Notable Changes:
* deps:
- upgrade openssl sources to 1.0.2k (Shigeki Ohtsu)
https://github.com/nodejs/node/pull/11021
PR-URL: https://github.com/nodejs/node/pull/11081
v6.9.5
2017-01-31 13:28:45 -05:00
Shigeki Ohtsu
87ac44974a
deps: update openssl asm and asm_obsolete files
...
Regenerate asm files with Makefile and CC=gcc and ASM=gcc where
gcc-5.4.0. Also asm files in asm_obsolete dir to support old compiler
and assembler are regenerated without CC and ASM envs
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
a4b43a7ef9
deps: add -no_rand_screen to openssl s_client
...
In openssl s_client on Windows, RAND_screen() is invoked to initialize
random state but it takes several seconds in each connection.
This added -no_rand_screen to openssl s_client on Windows to skip
RAND_screen() and gets a better performance in the unit test of
test-tls-server-verify.
Do not enable this except to use in the unit test.
Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
c4678d2f9a
openssl: fix keypress requirement in apps on win32
...
Reapply b910613792 .
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
f5b77fdf8d
deps: fix asm build error of openssl in x86_win32
...
See
https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html
iojs needs to stop using masm and move to nasm or yasm on Win32.
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Fedor Indutny
58fae148fa
deps: fix openssl assembly error on ia32 win32
...
`x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
perhaps others) are requiring .686 .
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
d623e8c5b9
deps: copy all openssl header files to include dir
...
All symlink files in `deps/openssl/openssl/include/openssl/`
are removed and replaced with real header files to avoid
issues on Windows. Two files of opensslconf.h in crypto and
include dir are replaced to refer config/opensslconf.h.
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
3f2bef60b8
deps: upgrade openssl sources to 1.0.2k
...
This replaces all sources of openssl-1.0.2k.tar.gz into
deps/openssl/openssl
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Myles Borins
1a47e5f409
Working on v6.9.5
...
PR-URL: https://github.com/nodejs/node/pull/10640
2017-01-05 17:49:40 -05:00
Myles Borins
f098f8295c
2017-01-05, Version 6.9.4 'Boron' (LTS)
...
This is a special release that contains 0 commits. While promoting
additional platforms for v6.9.3 after the release, the tarballs on the
release server were overwritten and now have different shasums. In
order to remove any ambiguity around the release we have opted to do a
semver patch release with no changes.
v6.9.4
2017-01-05 15:28:48 -05:00
Myles Borins
9844692719
Working on v6.9.4
...
PR-URL: https://github.com/nodejs/node/pull/10394
2017-01-03 18:51:59 -05:00
Myles Borins
42149d7346
2017-01-03, Version 6.9.3 'Boron' (LTS) Release
...
This LTS release comes with 312 commits. This includes 229 that are
test related, 62 that are docs related, 17 which are build / tools
related, and 4 commits which are updates to dependencies.
Notable Changes:
* build:
- shared library support is now working for AIX builds
(Stewart Addison) https://github.com/nodejs/node/pull/9675
* deps:
- *npm*: upgrade npm to 3.10.10 (Rebecca Turner)
https://github.com/nodejs/node/pull/9847
- *V8*: Destructuring of arrow function arguments via computed
property no longer throws (Michaël Zasso)
https://github.com/nodejs/node/pull/10386 )
* inspector:
- /json/version returns object, not an object wrapped in an array
(Ben Noordhuis) https://github.com/nodejs/node/pull/9762
* module:
- using --debug-brk and --eval together now works as expected
(Kelvin Jin) https://github.com/nodejs/node/pull/8876
* process:
- improve performance of nextTick up to 20% (Evan Lucas)
https://github.com/nodejs/node/pull/8932
* repl:
- the division operator will no longer be accidentally parsed as
regex (Teddy Katz) https://github.com/nodejs/node/pull/10103
- improved support for generator functions (Teddy Katz)
https://github.com/nodejs/node/pull/9852
* timers:
- Re canceling a cancelled timers will no longer throw
(Jeremiah Senkpiel) https://github.com/nodejs/node/pull/9685
PR-URL: https://github.com/nodejs/node/pull/10394
v6.9.3
2017-01-03 17:36:50 -05:00
Michaël Zasso
868e5e624c
build: remove node.dsYM directory
...
It was added by mistake in
https://github.com/nodejs/node/commit/d283704cd6cb08ef012de60b6857cb2c153eee63
PR-URL: https://github.com/nodejs/node/pull/10463
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-12-27 15:02:40 -05:00
Sam Shull
dee5a7f9be
test: invalid package.json causes error when require()ing in directory
...
Requiring a file from a directory that contains an invalid package.json
file should throw an error.
PR-URL: https://github.com/nodejs/node/pull/10044
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:43:51 +01:00
sarahmeyer
1684d6d65e
doc: update CONTRIBUTING.MD with link to V8 guide
...
Currently, two of the guides in the `/doc/guides` directory are actually
guides for working on the Nodei.js project. Of those, one is linked from
this page. This change adds a note to point people to the other.
PR-URL: https://github.com/nodejs/node/pull/10070
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-12-26 19:37:09 +01:00
Adao Junior
487f91a097
test: refactor domain test
...
Use assert.strictEqual() instead of assert.equal().
PR-URL: https://github.com/nodejs/node/pull/10269
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:34:43 +01:00
Segu Riluvan
26aa148ac5
test: refactor test-child-process-stdin
...
Use assert.strictEqual instead of assert.equal and assert.ok
PR-URL: https://github.com/nodejs/node/pull/10420
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:33:34 +01:00
Wallace Zhang
25b76a44a7
test: test error messages in test-dns-regress-7070
...
Add a RegExp as a second argument to assert.throws().
PR-URL: https://github.com/nodejs/node/pull/10058
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-12-26 19:31:52 +01:00
Josh Mays
8389a1eef4
test: refactor test-pipe-file-to-http
...
Changing var defs to const/let, changing assert.equal to
assert.strictEqual. Wrapping functions called once with
common.mustCall
PR-URL: https://github.com/nodejs/node/pull/10054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:31:16 +01:00
Amar Zavery
f9f2cda5dc
test: refactor test-cluster-send-handle-twice.js
...
- `var` --> `const` as applicable
- `assert.equal` --> `assert.strictEqual`
- `assert(false, ..)` --> `common.fail()`
- `common.mustCall` for functions that need to be called exactly once
- modified an `assert(!signal, 'Worker exited by a signal');` call to
`assert.strictEqual(signal, null);` call as that made more sense
PR-URL: https://github.com/nodejs/node/pull/10049
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:30:43 +01:00
Sam Shull
aba15fb9f2
test: add regex check in test-buffer-bad-overload
...
Creating a buffer from a number should throw an error with a message
that describes the issue.
PR-URL: https://github.com/nodejs/node/pull/10038
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:29:19 +01:00
Travis Bretton
ac9348d79f
test: refactoring test-pipe-head
...
- Updated assert.equal to assert.strictEqual
- Updated 'var' to 'const'
- Using template literals
PR-URL: https://github.com/nodejs/node/pull/10036
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2016-12-26 19:27:59 +01:00
Ken Russo
0ab2cfc64e
test: add second argument to assert.throws()
...
The assert.throws() calls in test-event-emitter-max-listeners.js
should include a constructor or RegExp as a second argument.
PR-URL: https://github.com/nodejs/node/pull/9987
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:26:44 +01:00
malen
610ec557a6
test: refactor test-child-process-ipc
...
Change var to const or let.
Change assert.equal() to assert.strictEqual().
PR-URL: https://github.com/nodejs/node/pull/9990
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-12-26 19:25:07 +01:00
Travis Bretton
ff3a1e69f5
test: cleanup test-stdout-close-catch.js
...
Added common.mustCall in child process on 'close' callback
Changed several 'var' statements to 'const' or 'let' where appropriate
Also linting
PR-URL: https://github.com/nodejs/node/pull/10006
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-12-26 19:23:25 +01:00
Christy Leung
49e7029283
test: refactor test-internal-modules
...
* var -> const
* add RegExp to assert.throws() to check error message
PR-URL: https://github.com/nodejs/node/pull/10016
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:21:47 +01:00
Brian Chirgwin
21a60912a8
test: refactor test-tls-interleave
...
var -> let / const
added common.mustCall() to callback
assert.equal() -> assert.strictEqual()
PR-URL: https://github.com/nodejs/node/pull/10017
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:21:18 +01:00
Kevin Cox
e53506ac01
test: update test-tls-check-server-identity.js
...
Changed var to const, assert.equal to assert.strictEqual, and
used a template string for error output.
PR-URL: https://github.com/nodejs/node/pull/9986
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:18:25 +01:00
Outsider
bdf633a32e
test: use const/let and common.mustCall
...
remove process.on('exit') because all callbacks are
wrapped by common.mustCall.
PR-URL: https://github.com/nodejs/node/pull/9959
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-12-26 19:17:53 +01:00
Christopher Rokita
77334a2143
test: refactoring test-cluster-worker-constructor
...
- Using assert.strictEqual instead assert.equal
PR-URL: https://github.com/nodejs/node/pull/9956
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2016-12-26 19:17:20 +01:00
Harish Tejwani
3c3d2d6776
test: refactor test-tls-client-getephemeralkeyinfo
...
change var to const and add mustCall
PR-URL: https://github.com/nodejs/node/pull/9954
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:15:03 +01:00
Rico Cai
da3ccb969d
test: improve test-cluster-net-listen.js
...
convert var to const
PR-URL: https://github.com/nodejs/node/pull/9953
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
2016-12-26 19:14:31 +01:00
CodeVana
9991bcbada
test: improve domain-top-level-error-handler-throw
...
Use assert.strictEqual instead of assert.equal.
PR-URL: https://github.com/nodejs/node/pull/9950
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-12-26 19:08:49 +01:00
Richard Karmazin
eff85e659f
test: refactor test-tls-0-dns-altname
...
* var -> const, let
* assert.equal() -> assert.strictEqual()
PR-URL: https://github.com/nodejs/node/pull/9948
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:08:38 +01:00
Jason Wohlgemuth
b37fce91d3
test: test: refactor test-sync-fileread
...
change equal to strictEqual and var to const
PR-URL: https://github.com/nodejs/node/pull/9941
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-12-26 19:08:18 +01:00
Kailean Courtney
420b3b851e
test: clean up repl-reset-event file
...
* Change vars to let/const
* Add mustCall
* equal -> strictEqual
* remove timeout
PR-URL: https://github.com/nodejs/node/pull/9931
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:08:00 +01:00
Amar Zavery
b8511aba04
test: replace var with const in test-require-dot
...
PR-URL: https://github.com/nodejs/node/pull/9916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2016-12-26 19:07:39 +01:00
Avery, Frank
68836ec455
test: added validation regex argument to test
...
In this change, I've added the regex pattern to the assert.throws()
in order to provide the validation argument for the call.
PR-URL: https://github.com/nodejs/node/pull/9918
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:04:44 +01:00
Kevin Zurawel
f9d0cce9ae
doc: update process.versions.modules documentation
...
This commit adds a description of `process.versions.modules`,
based on the comment in `src/node_version.h` lines 47-50.
PR-URL: https://github.com/nodejs/node/pull/9901
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-12-26 19:03:22 +01:00
Michaël Zasso
e355604aa5
tools: forbid template literals in assert.throws
...
Extend the assert-throws-arguments custom ESLint rule to also check for
the use of template literals as a second argument to assert.throws.
PR-URL: https://github.com/nodejs/node/pull/10301
Ref: https://github.com/nodejs/node/pull/10282#discussion_r92607290
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2016-12-26 15:40:55 +01:00
Michaël Zasso
9c85d0f396
tools: add ESLint rule for assert.throws arguments
...
The second argument to "assert.throws" is usually a validation RegExp or
function for the thrown error. However, the function also accepts a
string and in this case it is interpreted as a message for the
AssertionError and not used for validation. It is common for people to
forget this and pass a validation string by mistake.
This new rule checks that we never pass a string literal as a second argument
to "assert.throws". Additionally, there is an option to enforce the
function to be called with at least two arguments. It is currently off
because we have many tests that do not comply with this rule.
PR-URL: https://github.com/nodejs/node/pull/10089
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-12-26 15:39:03 +01:00
Michaël Zasso
70d3b808a0
test: fix test-buffer-slow
...
Fix incorrect use of string instead of RegExp in `throws` assertions.
PR-URL: https://github.com/nodejs/node/pull/9809
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2016-12-26 14:09:46 +01:00
Michaël Zasso
3d368d0322
test: refactor test-buffer-bytelength
...
* assert.equal -> assert.strictEqual.
PR-URL: https://github.com/nodejs/node/pull/9808
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2016-12-26 14:05:13 +01:00
Jonathan Darling
b5c8b355c8
test: add stdin-setrawmode.out file
...
Adds an accompanying .out file for test/pseudo-tty/stdin-setrawmode.js.
The test was originally merged without this file and an astute
observer found that it was causing an error message. See discussion
at https://github.com/nodejs/node/pull/10037 .
PR-URL: https://github.com/nodejs/node/pull/10149
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-12-26 14:05:13 +01:00
Anna Henningsen
e057925316
test: set stdin too for pseudo-tty tests
...
Ref: https://github.com/nodejs/node/pull/10037
Ref: https://github.com/nodejs/node/pull/10146
PR-URL: https://github.com/nodejs/node/pull/10149
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2016-12-26 14:05:13 +01:00
Michaël Zasso
e60cafdb3b
deps: backport f795a79 from upstream V8
...
Original commit message:
Rewrite scopes in computed properties in destructured parameters
While we properly handled scopes of initializers in destructured
parameters,
we never did the right thing for computed properties. This patch
fixes that
by factoring out PatternRewriter's scope rewriting logic and calls
it for the computed property case.
BUG=chromium:620119
Review-Url: https://codereview.chromium.org/2084103002
Cr-Commit-Position: refs/heads/master@{#37228}
Fixes: https://github.com/nodejs/node/issues/10347
PR-URL: https://github.com/nodejs/node/pull/10386
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 11:38:38 +01:00