Commit Graph
15535 Commits
Author SHA1 Message Date
Josh Mays bca587bdb3 test: refactor test-crypto-certificate
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9911
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 11:10:19 -05:00
Konstantin Likhter 278772a5df test: refactor dgram-send-multi-buffer-copy
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9909
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 11:10:18 -05:00
Johnny Reading 6d5ded508e test: refactor test-domain
Use assert.strictEqual() instead of assert.equal().

PR-URL: https://github.com/nodejs/node/pull/9890
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:18 -05:00
Exlipse7 318a2dbea4 test: refactor test-cli-syntax
Switch assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/10057
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 11:10:18 -05:00
k3kathy da8e3d946a test: refactor test-child-process-constructor
Change all assert.equal() to use assert.strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10060
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2016-12-05 11:10:18 -05:00
Cesar Hernandez 9fddf29f53 test: refactor test-repl-mode.js
* var -> const/let
* assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/10061
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-12-05 11:10:17 -05:00
Sean Villars 65c44830c2 test: var to const, assert.equal to assert.strictEqual in net
* var -> const
* assert.equal -> assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9907
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:17 -05:00
anoff ef7cbde0a2 test: changed vars to const in test-net-better-error-messages-listen-path.js
* `var` to `const`
* use `assert.strictEqual`

PR-URL: https://github.com/nodejs/node/pull/9905
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:17 -05:00
Sarah Meyer f62567b7f8 test: use const instead of var in test-require-json.js
PR-URL: https://github.com/nodejs/node/pull/9904
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:17 -05:00
Outsider 5f3f54d4bb test: refactor test-http-dns-error
Replace var with const and use strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10062
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-05 11:10:16 -05:00
Daniel Pittman ae2bf0a761 test: Changed assert.equal to assert.strictEqual
Updated test-cluster-send-deadlock.js to change
assert.equal to assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9902
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:16 -05:00
Jay Brownlee 1eb581779d test: refactor test-vm-syntax-error-stderr.js
use common.fail instead of assert(false)
change var to let or const as appropriate

PR-URL: https://github.com/nodejs/node/pull/9900
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:16 -05:00
Chris Bystrek c456ca3601 test: refactor test-tls-destroy-whilst-write
Update var to let/const and replace arbitrary timeout.

PR-URL: https://github.com/nodejs/node/pull/10064
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2016-12-05 11:10:16 -05:00
Kent.Fan fd17ca7710 test: refactor test-net-dns-custom-lookup
Use asssert.strictEqual to disallow coersion.

PR-URL: https://github.com/nodejs/node/pull/10071
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 11:10:15 -05:00
davidmarkclements cf3c635dba test: refactor test-https-truncate
Changes assert.equal to assert.strictEqual to ensure specificity.

Changes var declarations to const/let where appropriate.

PR-URL: https://github.com/nodejs/node/pull/10074
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-05 11:10:15 -05:00
Hutson Betts 14c0388945 test: refactor test-tls-server-verify
Refactored `test-tls-server-verify.js` to replace uses of `var` with
`const` and `let`. Also replaced uses of `assert.equal` with
`assert.strictEqual`.

PR-URL: https://github.com/nodejs/node/pull/10076
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2016-12-05 11:10:15 -05:00
Konstantin Likhter 36b8dd3b07 test: refactor test-crypto-padding.js
- Replaced var with const and let.
- Replaced assert.equal() with assert.strictEqual().
- Added error message checking for assert.throws().

PR-URL: https://github.com/nodejs/node/pull/9971
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:38:41 +01:00
Julian Duque 38ec8e44fa test: improve test for crypto padding
Replace assert.equal with assert.strictEqual and use RegExp in
assert.throws

PR-URL: https://github.com/nodejs/node/pull/9906
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:38:37 +01:00
Richard Karmazin a771f2181c test: use strictEqual in test-cli-eval-event.js
PR-URL: https://github.com/nodejs/node/pull/9964
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:38:02 +01:00
Adrian Estrada e1394eeb16 test: refactor test-tls-friendly-error-message.js
Replaces var with const and adds common.mustCall().

PR-URL: https://github.com/nodejs/node/pull/9967
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:38:01 +01:00
Claudio Rodriguez 3253954e62 meta: whitelist dotfiles in .gitignore
Instead of excluding IDE-specific dotfiles, exclude all and
then whitelist those the project needs to track.

Refs: https://github.com/nodejs/node/pull/8010
Refs: https://github.com/nodejs/node/pull/9111
Refs: https://github.com/nodejs/node/pull/10052

Fixes: https://github.com/nodejs/node/issues/8012
PR-URL: https://github.com/nodejs/node/pull/8016

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Josh Gavant <josh.gavant@outlook.com>
2016-12-05 03:38:01 +01:00
adelmann 69077a13bf test: refactor test-fs-append-file.js
- Replaced var with either const or let.
- Replaced assert.equal() with assert.strictEqual().
- Replaced all error checks with assert.ifError(e).

PR-URL: https://github.com/nodejs/node/pull/10110
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-05 03:38:00 +01:00
davidmarkclements baa1accdb1 test: assert.equal -> assert.strictEqual
changes assert.equal to assert.strictEqual to ensure specificity

PR-URL: https://github.com/nodejs/node/pull/10065
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:38:00 +01:00
Cesar Hernandez a34e19532c test: refactor test-dgram-exclusive-implicit-bind
* assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/10066
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-05 03:37:59 +01:00
davidmarkclements d87926ae34 test: assert.equal -> assert.strictEqual
changes assert.equal to assert.strictEqual to ensure specificity

PR-URL: https://github.com/nodejs/node/pull/10067
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:37:59 +01:00
joyeecheung ea1c4e1212 test,url: improve escaping in url.parse
- rename variables in autoEscapeStr so they are easier to understand
- comment the escaping algorithm
- increase coverage for autoEscapeStr

PR-URL: https://github.com/nodejs/node/pull/10083
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:37:58 +01:00
Hitesh Kanwathirtha c4902e44ad test: polish test-net-better-error-messages-listen
Cleans up test-net-better-error-messages-list.js with following:
- var -> const
- assert.equal -> assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/10087
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2016-12-05 03:37:58 +01:00
bjdelro 9b9fe8c5ac test: change var to const in test-tls-key-mismatch.js
PR-URL: https://github.com/nodejs/node/pull/9897
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:37:57 +01:00
iamchenxin c4fbdfa785 doc: fix typo for decipher.final.
The `output_encoding` parameter should be as the same as
`decipher.update`.

PR-URL: https://github.com/nodejs/node/pull/10086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:37:57 +01:00
JDHarmon 7697aee7da test: use strictEqual in cwd-enoent
Changed all references from assert.Equal() to assert.strictEqual().

PR-URL: https://github.com/nodejs/node/pull/10077
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2016-12-05 03:37:56 +01:00
Jonathan Darling cdc2909882 test: refactor test-fs-read-stream-inherit.js
* convert assert.equal to assert.strictEqual
* convert var to const/let

PR-URL: https://github.com/nodejs/node/pull/9894
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:37:55 +01:00
Daniel Pittman 55b58baed1 test: use assert.strictEqual in test-crypto-ecb
Updated test-crypto-ecb.js to change assert.equal
to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9980
Reviewed-By: Rich Trott <rtrott@gmail.com>
2016-12-05 03:37:55 +01:00
Wes Tyler e070588a8a test: refactor test-child-process-stdio-inherit
assert.equal() -> assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/9893
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:39 +01:00
Harish Tejwani 22b15f2ab6 test: change var to const for require and strict equality checks
PR-URL: https://github.com/nodejs/node/pull/9892
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:39 +01:00
Daniel Flores 2a8d29339d test: Update to const and use regex for assertions
Use const over var.

Assert error message with regex.

PR-URL: https://github.com/nodejs/node/pull/9891
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:38 +01:00
Peter Masucci 295eb5a3b6 test: swap var->const/let and equal->strictEqual
Change instances of var with const/let.
Change assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9888
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:38 +01:00
Julian Duque 57f060c495 test: replace equal with strictEqual in crypto
Replace assert.equal with assert.strictEqual in
crypto cipher-decipher test

PR-URL: https://github.com/nodejs/node/pull/9886
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:37 +01:00
Julian Duque 3d35930b2c test: replace equal with strictEqual
Replace assert.equal with assert.strictEqual

PR-URL: https://github.com/nodejs/node/pull/9879
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:37 +01:00
rajatk 13cc6a005b test: var to const/let in test-tls-set-ciphers
this change is part of code and learn (NINA-2016)

PR-URL: https://github.com/nodejs/node/pull/9877
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:36 +01:00
Devon Rifkin f3eb8b1bea test: refactor test-tls-timeout-server-2
* Use `common.mustCall` for all callbacks
* Use `const` instead of `var`

PR-URL: https://github.com/nodejs/node/pull/9876
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:36 +01:00
Matt Webb dc76a20474 test: Updating vars to const and tsl server test
PR-URL: https://github.com/nodejs/node/pull/9874
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-05 03:35:35 +01:00
Matt Wilson 63fafb8aca test: refactor test-crypto-hash-stream-pipe
Change var to const.

PR-URL: https://github.com/nodejs/node/pull/10055
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2016-12-05 03:35:35 +01:00
Mitchell Stoutin fb4b650159 test: crypto-hash-stream-pipe use strict equal
Replaces the use of assert.equal() with assert.strictEqual in test
code.

PR-URL: https://github.com/nodejs/node/pull/9935
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:34 +01:00
Johnny Reading 8f550df252 test: refactor child-process-spawn-error
Use const instead of var for assignments.

PR-URL: https://github.com/nodejs/node/pull/9951
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:34 +01:00
stokingerl b73f6b760f test: refactor test-child-process-spawn-error
Change instances of assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9937
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:33 +01:00
David Bradford 371ca03568 test: refactor test-vm-static-this.js
Remove console statements and prefer strictEqual() over equal()
in assertions.

PR-URL: https://github.com/nodejs/node/pull/9887
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:33 +01:00
Aileen 3e37673d5c test: refactor test-crypto-cipheriv-decipheriv
Make change in test file from var to const/let.

PR-URL: https://github.com/nodejs/node/pull/10018
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:32 +01:00
Franziska Hinkelmann 03b1c314cd deps: cherry-pick 08377af from v8 upstream
Orignial commit message:

[crankshaft] No need to rely on the @@hasInstance protector.

In Crankshaft we can actually do an abstract interpretation of the
@@hasInstance lookup when optimizing instanceof and then use the
normal machinery to protect the result instead of relying on the
global @@hasInstance protector cell for optimizations.

This recovers the 100x performance drop in Node.js v7 reported in
https://github.com/nodejs/node/issues/9634. This patch should be
easily back-mergable to Node.js v7.

BUG=v8:5640
R=yangguo@chromium.org,franzih@chromium.org

Committed: https://crrev.com/08377af957b1602396ebf3e11ae000f15ed09333
Cr-Commit-Position: refs/heads/master@{#41059}

PR-URL: https://github.com/nodejs/node/pull/9730
Fixes: https://github.com/nodejs/node/issues/9634
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2016-12-05 03:35:31 +01:00
Julian Duque f76bb2adf8 test: refactor test for crypto cipher/decipher iv
Replace assert.equal with assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9943
Reviewed-By: Rich Trott <rtrott@gmail.com>
2016-12-05 03:35:31 +01:00
Oscar Martinez 4cc813d8b9 test: refactor test-cluster-setup-master-argv
- updated vars to const
- add common.mustCall() to setup callback

PR-URL: https://github.com/nodejs/node/pull/9960
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-05 03:35:30 +01:00