Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v16.x backport] WPT runner update and crypto followups #44872

Closed
wants to merge 336 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
336 commits
Select commit Hold shift + click to select a range
38d92ab
test: use `mustSucceed` instead of `mustCall` with `assert.ifError`
fossamagna Aug 12, 2022
ccfdb47
doc: improved building doc for Android
MeowShe Aug 12, 2022
68aaec5
build: enable pointer authentication for branch protection on arm64
jgowdy-godaddy Aug 12, 2022
95e2fb4
errors: refactor to use optional chaining
xtx1130 Aug 3, 2022
1e3ea5f
src: fix --heapsnapshot-near-heap-limit error hint
legendecas Aug 14, 2022
f2dc7c2
meta: update AUTHORS
nodejs-github-bot Aug 14, 2022
1338afb
test: mark connection leak test flaky on IBM i
richardlau Aug 14, 2022
89a3ed6
tools: update lint-md-dependencies to [email protected]
nodejs-github-bot Aug 14, 2022
ab60ceb
deps: update corepack to 0.12.3
nodejs-github-bot Aug 14, 2022
1bc2090
doc: add cola119 to collaborators
cola119 Aug 16, 2022
6e9a4ad
test: move "errors" test to "parallel"
targos Aug 16, 2022
b0290ce
report: skip report if uncaught exception is handled
legendecas Aug 16, 2022
c6c77d0
http: add max for http keepalive
theanarkh Aug 16, 2022
57eb268
tools: update lint-md-dependencies to [email protected]
nodejs-github-bot Aug 16, 2022
993cf51
trace_events: add example
theanarkh Aug 16, 2022
00bf443
tls: use logical OR operator
VoltrexKeyva Aug 16, 2022
0759337
tools: update ESLint to 8.22.0
lpinca Aug 17, 2022
00bc140
meta: update `web streams` in label-pr-config
daeyeon Aug 17, 2022
807a659
lib: refactor to avoid prototype pollution
aduh95 Aug 17, 2022
bb91f62
deps: upgrade npm to 8.18.0
npm-cli-bot Aug 18, 2022
334185c
src: avoid copying BaseObjectPtrs in loop
tniessen Aug 18, 2022
e7ac9c0
doc,report: document special filenames
legendecas Aug 19, 2022
0056d4a
src: extract common context embedder tag checks
legendecas Aug 17, 2022
ab3fd9f
doc: add TypeScript execution requirements
mhdawson Jul 28, 2022
9b9bd0b
test: add coverage for invalid RSA-PSS digests
tniessen Aug 20, 2022
ff72758
src: refactor to avoid using a moved object
tniessen Aug 20, 2022
aa30bd8
doc: fix typo
h-a-n-a Aug 20, 2022
ce1a3e2
doc: fix optionality of callback arg of checkPrime
tniessen Aug 20, 2022
2b9e88d
test_runner: fix test runner hooks failure stack
MoLow Aug 20, 2022
34d4fb2
meta: update AUTHORS
nodejs-github-bot Aug 21, 2022
b2a222d
src: use imported namespaces in `node_contextify.cc`
juanarbol Aug 21, 2022
a6fc975
tools: update lint-md-dependencies to [email protected]
nodejs-github-bot Aug 21, 2022
00ee31f
fs: add encoding parameter to benchmarks
anonrig Aug 21, 2022
8e2c68b
deps: update corepack to 0.13.0
nodejs-github-bot Aug 21, 2022
6ec68f7
lib: add diagnostics channel and perf hooks detail
danielleadams Jul 26, 2022
a08d7a7
test: deflake test-diagnostics-channel-net
kvakil Aug 7, 2022
4c01222
deps: upgrade npm to 8.19.1
npm-cli-bot Sep 2, 2022
cb5f58d
deps: update undici to 5.9.1
nodejs-github-bot Aug 24, 2022
14c88a0
deps: update icu tzdata to 2022b
Manizuca Aug 18, 2022
6bc07f8
deps: update Acorn to v8.8.0
targos Aug 31, 2022
2d54e72
deps: update corepack to 0.14.0
nodejs-github-bot Sep 5, 2022
4bbcda7
doc: add missing parenthesis in TLSSocket section
tniessen Sep 4, 2022
abd26c5
doc: add missing imports in events sample code
mrbrianevans Aug 31, 2022
41a33e5
build: added NINJA env to customize ninja binary
jdx Aug 22, 2022
49c68fa
test: make tmpdir.js importable from esm
GeoffreyBooth Aug 23, 2022
a32814b
test: remove duplicate test
lpinca Aug 24, 2022
cfb5285
doc: fix style of n-api.md
theanarkh Aug 25, 2022
131368e
doc: add daeyeon to collaborators
daeyeon Aug 23, 2022
f63a2c0
doc: fix typo in test runner code examples
MoLow Aug 23, 2022
f1a41fc
doc: add history for net.createServer() options
lpinca Aug 23, 2022
179caf5
doc: do not use "Returns:" for crypto.constants
tniessen Sep 2, 2022
645de42
doc: use serial comma in addons docs
tniessen Sep 1, 2022
c86cc41
doc: apply scroll-margin-top to h2, h3 elements
metonym Aug 30, 2022
df27f8a
doc: fix spacing issue in `--build-snapshot` help text
syohex Aug 29, 2022
40f3c0c
doc: mention cherry-pick edge-case on release
RafaelGSS Aug 26, 2022
0d2dc31
doc: note on release guide to update `main` branch
ruyadorno Aug 27, 2022
9905a62
doc: fix release guide example consistency
ruyadorno Aug 27, 2022
25b4ae2
report: add queue info for udp
theanarkh Aug 24, 2022
e9db092
meta: update AUTHORS
nodejs-github-bot Aug 28, 2022
ccd4b49
meta: update AUTHORS
nodejs-github-bot Sep 4, 2022
903ed31
tools: update eslint to 8.23.0
nodejs-github-bot Aug 27, 2022
eec90cc
tools: update doc to [email protected]
nodejs-github-bot Aug 28, 2022
c95ad1b
tools: don't use f-strings in test.py
santigimeno Aug 28, 2022
8f4ef6d
tools: update lint-md-dependencies to [email protected]
nodejs-github-bot Sep 4, 2022
517fad0
lib: use safe `Promise` alternatives when available
aduh95 Aug 17, 2022
a840dd2
debugger: decrease timeout used to wait for the port to be free
joyeecheung Aug 24, 2022
ec45a96
src: make minor improvements to SecureBuffer
tniessen Aug 22, 2022
e325f18
tls: use OpenSSL constant for client random size
tniessen Aug 22, 2022
e0d92ba
test: raise sleep times in child process tests
joyeecheung Aug 25, 2022
d92f268
test: fix multiple incorrect mustNotCall() uses
tniessen Aug 30, 2022
a132ca3
test: split heap prof tests
joyeecheung Aug 25, 2022
d25f991
test: make the vm timeout escape tests more lenient
joyeecheung Aug 29, 2022
8b6d572
test: deflake child process exec timeout tests
joyeecheung Aug 25, 2022
e658188
test: avoid race in file write stream handle tests
joyeecheung Aug 24, 2022
f2316c8
crypto: improve RSA-PSS digest error messages
tniessen Aug 22, 2022
7a44c68
src: fix multiple format string bugs
tniessen Aug 22, 2022
189f4c4
tty: fix TypeError when stream is closed
aduh95 Aug 24, 2022
8f7d124
src: remove KeyObjectData::symmetric_key_len_
tniessen Aug 24, 2022
84585aa
node-api: cleanup redundant static modifiers
legendecas Aug 25, 2022
b5cc672
src: simplify ECDH::GetCurves()
tniessen Aug 26, 2022
3f44422
build: add --libdir flag to configure
sgallagher Aug 28, 2022
277a7fd
src: simplify and optimize GetOpenSSLVersion()
tniessen Aug 28, 2022
0773144
cluster: fix cluster rr distribute error
theanarkh Aug 28, 2022
181d436
src: trace fs async api
theanarkh Aug 28, 2022
3d953e9
src: fix ssize_t error from nghttp2.h
RaisinTen Aug 29, 2022
0b2f1c5
src: make Endianness an enum class
tniessen Aug 30, 2022
2ad1c26
src: fix uv_err_name memory leak
theanarkh Aug 30, 2022
9c7a42a
src: remove base64_select_table and base64_table
tniessen Aug 31, 2022
32d6349
node-api: avoid calling virtual methods in base's dtor
legendecas Aug 31, 2022
4d7cbf2
src: add error handling to `uv_uptime` call
juanarbol Aug 24, 2022
e5a4d9e
src: avoid casting std::trunc(... / ...) to size_t
tniessen Sep 1, 2022
c9dbd61
src: fix incorrect comments in crypto
tniessen Sep 1, 2022
97a5f0b
src: improve error handling in CloneSSLCerts
tniessen Sep 1, 2022
d519e5b
crypto: add digest name to INVALID_DIGEST errors
tniessen Sep 2, 2022
fe62a4d
net: add local family
theanarkh Jul 26, 2022
48488e9
http: make idle http parser count configurable
theanarkh Jul 29, 2022
4faadb9
lib: make `validateObject` less affected by prototype tampering
aduh95 Jul 11, 2022
c6fd8fb
bootstrap: stop delaying instantiation of maps in per-context scripts
RaisinTen May 5, 2022
2b1cbd2
buffer: fix `atob` input validation
austinkelleher Apr 12, 2022
689cec4
lib: refactor `validateInt32` and `validateUint32`
mawaregetsuka May 22, 2022
dcb4704
src: use a typed array internally for process._exiting
RaisinTen Jul 31, 2022
c1c8b6d
net,tls: pass a valid socket on `tlsClientError`
daeyeon Aug 1, 2022
c3edf6b
util: add `maxArrayLength` option to Set and Map
cola119 Jul 14, 2022
cda282e
src: nest namespace report in namespace node
legendecas Jul 31, 2022
ebc76b6
lib: reset `RegExp` statics before running user code
aduh95 Aug 5, 2022
2e9f638
doc: add performance note to `--enable-source-maps` docs
saurabhdaware Aug 6, 2022
5ee8909
src: fix cppgc incompatibility in v8
codebytere Jun 21, 2022
0788f80
typings: add JSDoc for `internal/validators`
anonrig Aug 17, 2022
f268328
report: print javascript stack on fatal error
legendecas Aug 15, 2022
3b66e76
tls: remove SecureContext setFreeListLength
tniessen Aug 22, 2022
472162c
report: expose report public native apis
legendecas Aug 24, 2022
017ee94
inspector: prevent integer overflow in open()
tniessen Aug 25, 2022
b121ea7
test: split report OOM tests
joyeecheung Aug 25, 2022
6981a59
doc,worker: document resourceLimits overrides
kvakil Aug 29, 2022
e8cedcc
os: add machine method
theanarkh Aug 29, 2022
344a3ce
lib: add diagnostics channel for process and worker
theanarkh Aug 30, 2022
5bcc293
crypto: use actual option name in error message
tniessen Aug 31, 2022
7696899
src: expose environment RequestInterrupt api
legendecas Aug 21, 2022
7881b0f
report: fix missing section javascriptHeap on OOMError
legendecas Aug 25, 2022
e5725c2
report: get stack trace with cross origin contexts
legendecas Aug 26, 2022
230af80
crypto: handle invalid prepareAsymmetricKey JWK inputs
panva Sep 3, 2022
299fcf3
src: rename misleading arg in ClientHelloParser
tniessen Sep 4, 2022
2eab40a
doc: move policy docs to the permissions scope
RafaelGSS Sep 5, 2022
b7f8d72
test: add more cases for parse-encoding
tony-go Sep 6, 2022
b6b54b6
test: fix DebugSymbolsTest.ReqWrapList on PPC64LE
danbev Aug 22, 2022
8ef07e6
doc: document attribute Script.cachedDataRejected
legendecas Sep 6, 2022
4c50aee
deps: update to uvwasi 0.0.13
cjihrig Sep 5, 2022
b724362
lib: fix reference leak
falsandtru Sep 7, 2022
1ab25e4
v8: add setHeapSnapshotNearHeapLimit
theanarkh Sep 8, 2022
f1429f8
tools: fix shebang to use python3 by default
himself65 Sep 8, 2022
687252c
doc: emphasize that createCipher is never secure
tniessen Sep 8, 2022
00bba35
stream: add `ReadableByteStream.tee()`
daeyeon Sep 8, 2022
5d2922c
doc: remove ebpf from supported tooling list
RafaelGSS Sep 9, 2022
4c48074
test: use python3 instead of python
lpinca Sep 10, 2022
6c7fc29
doc: do not use weak MODP group in example
tniessen Sep 10, 2022
4ee1d5f
crypto: restrict PBKDF2 args to signed int
tniessen Sep 10, 2022
2f37dd4
meta: update AUTHORS
nodejs-github-bot Sep 11, 2022
a7c2602
doc: fix link in `process.md`
aduh95 Sep 11, 2022
29d31f6
doc: mention how to get commit release
RafaelGSS Sep 11, 2022
087ddf3
tools: increase timeout of running WPT
joyeecheung Sep 11, 2022
4c12c33
build: rewritten the Android build system
MeowShe Sep 12, 2022
2d9b531
doc: fix vm.Script createCachedData example
legendecas Sep 12, 2022
7fbb996
doc: fix errors in http.md
lpinca Sep 12, 2022
f0fabd3
doc: fix heading levels for test runner hooks
meyfa Sep 12, 2022
c3d18ee
doc: remove old OpenSSL ENGINE constants
tniessen Sep 12, 2022
4d187c7
doc: deprecate modp1, modp2, and modp5 groups
tniessen Sep 12, 2022
20a76a6
test: ignore stale process cleanup failures on Windows
joyeecheung Sep 13, 2022
0c987d1
inspector: expose inspector.close on workers
legendecas Sep 13, 2022
478020d
win: fix fs.realpath.native for long paths
StefanStojanovic Sep 13, 2022
4bc025b
src: dump isolate stats when process exits
qdaoming Sep 13, 2022
a1d6e3a
stream: refactor use es2020 statement
xtx1130 Sep 6, 2022
a79c640
benchmark: add stream destroy benchmark
xtx1130 Sep 7, 2022
5570be4
tools: update lint-md-dependencies to @rollup/[email protected]
nodejs-github-bot Sep 13, 2022
2c9cf4c
src: make NearHeapLimitCallback() more robust
joyeecheung Sep 13, 2022
e4f4749
build: remove redundant entry in crypto
gengjiawen Sep 14, 2022
e618ac2
src: make ReqWrap weak
RafaelGSS Sep 14, 2022
2f4fd45
doc: remove empty line in YAML block
ovflowd Sep 14, 2022
b6dae67
fs: remove unused option in `fs.fstatSync()`
LiviaMedeiros Sep 14, 2022
cff66c2
doc: use serial comma in stream docs
daeyeon Sep 14, 2022
1bb11f8
test_runner: include stack of uncaught exceptions
MoLow Sep 14, 2022
8e4dbee
src: avoid copy when creating Blob
tniessen Sep 14, 2022
61c3a8b
test: fix `test-repl` not validating leaked globals properly
aduh95 Sep 14, 2022
1318dd6
tools: update lint-md-dependencies to @rollup/[email protected]
nodejs-github-bot Sep 15, 2022
efb18b0
doc: use serial comma in report docs
daeyeon Sep 15, 2022
7686ef6
tools: update eslint to 8.23.1
nodejs-github-bot Sep 15, 2022
c971167
meta: update test_runner in label-pr-config
shrujalshah28 Sep 15, 2022
b0b2209
doc: remove comma in README.md
Taha-Chaudhry Sep 15, 2022
5b8576f
lib,test: fix bug in InternalSocketAddress
tniessen Sep 15, 2022
7d1ff72
tls: fix out-of-bounds read in ClientHelloParser
tniessen Sep 15, 2022
1c5fa11
doc,inspector: document changes of inspector.close
legendecas Sep 13, 2022
e55578e
test: improve lib/readline.js coverage
fossamagna Sep 15, 2022
b605437
tools: add timezone update workflow
98lenvi Sep 15, 2022
1a5f96b
tools: fix typo in update-nghttp2.sh
lpinca Sep 16, 2022
bb70302
doc: add legendecas to TSC list
mhdawson Sep 15, 2022
9845ed6
test: fix test-performance-measure
smitley Sep 14, 2022
76654b4
doc: maintain only one list of MODP groups
tniessen Sep 17, 2022
36b6e74
doc: improve building doc for Windows Powershell
bmuenzenmeyer Sep 13, 2022
bdd7a6d
deps: upgrade npm to 8.19.2
npm-cli-bot Sep 17, 2022
f0a0bb8
doc: make legacy banner slightly less bright
Trott Sep 17, 2022
264894a
meta: move dnlup to emeriti
dnlup Sep 18, 2022
2c2c9e9
http: throw error on content-length mismatch
sidwebworks Aug 24, 2022
4868cda
deps: update ngtcp2 update instructions
tniessen Sep 18, 2022
add6665
deps: update corepack to 0.14.1
nodejs-github-bot Sep 18, 2022
941a13f
module: open stat/readPackage to mutations
arcanis Sep 18, 2022
4ee92e0
deps: update to ngtcp2 0.8.1 and nghttp3 0.7.0
tniessen Sep 18, 2022
2adb007
src: remove <unistd.h> from node_os.cc
tniessen Sep 18, 2022
1ba53c4
meta: update AUTHORS
nodejs-github-bot Sep 18, 2022
099f215
tools: add update-llhttp.sh
ShogunPanda Sep 15, 2022
bcceb9a
meta: add mailmap entry for dnlup
Trott Sep 19, 2022
edee1c0
esm,loader: tidy ESMLoader internals
JakobJingleheimer Sep 19, 2022
c153a79
doc: remove extra space on threadpool usage
connorjburton Sep 20, 2022
ea323e0
doc: mention where to push security commits
RafaelGSS Sep 16, 2022
045f81f
gyp: libnode for ios app embedding
chexiongsheng Sep 21, 2022
5e8e357
src: avoid using v8 on Isolate termination
santigimeno Sep 21, 2022
bd74a78
doc: include code examples for webstreams consumers
khaosdoctor Aug 24, 2022
ee2cfa7
benchmark: fix startup benchmark
evanlucas Sep 21, 2022
081d1fe
doc,crypto: cleanup removed pbkdf2 behaviours
panva Sep 22, 2022
f3c5c3a
util: increase robustness with primordials
ljharb Sep 22, 2022
7a0b104
doc: add registry number for Electron 22
VerteDinde Sep 23, 2022
c229626
test: change promise to async/await in debugger-watcher
Pooja444 Sep 16, 2022
c0ba77c
doc: update guidance for adding new modules
mhdawson Sep 8, 2022
2019ecb
http: disable chunked encoding when OBS fold is used
ShogunPanda Sep 19, 2022
f77a1ce
doc: update the deprecation for exit code to clarify its scope
daeyeon Sep 24, 2022
be89702
meta: update AUTHORS
nodejs-github-bot Sep 25, 2022
07590e3
test: check that sysconf returns a positive value
tniessen Sep 25, 2022
7184405
test: update test-debugger-low-level to use await/async
ml7181 Sep 25, 2022
7578dc5
test: use async/await in test-debugger-invalid-args
nupurchauhan6 Sep 25, 2022
a7fe321
doc: fix v16.17.1 security release changelog
ruyadorno Sep 25, 2022
45f57df
doc: fix description for `napi_get_cb_info()` in `n-api.md`
daeyeon Sep 26, 2022
c3ae734
test: change promises to async/await
MadhulikaSharma95 Sep 26, 2022
4ea0936
fs: fix typo in mkdir example
SergeyTsukanov Sep 26, 2022
6593b22
test: verify napi_remove_wrap with napi_delete_reference
legendecas Sep 26, 2022
140613d
doc: ensure to revert node_version changes
RafaelGSS Sep 23, 2022
a9a1141
doc: mention git node backport
RafaelGSS Sep 23, 2022
230079c
tools: update lint-md-dependencies to [email protected]
nodejs-github-bot Sep 26, 2022
b45274a
tools: update eslint to 8.24.0
nodejs-github-bot Sep 27, 2022
ef4cacf
path: change basename() argument from ext to suffix
Trott Sep 27, 2022
e1cb21f
tools: update eslint-check.js to object style
Sep 27, 2022
f93ad65
test: change the promises to async/await in test-debugger-exec-scope.js
Ankita-Khiratkar Sep 27, 2022
0da8ee1
test: use async/await in test-debugger-profile
surbhirjain Sep 27, 2022
6e4adde
test: use async/await in test-debugger-preserve-breaks
poorvitusam Sep 27, 2022
02c85d3
test: update test-debugger-breakpoint-exists.js to use async/await
archana-kamath Sep 27, 2022
2b75e48
build: update timezone-update.yml
sashashura Sep 19, 2022
7b98a24
test: modify test-debugger-custom-port.js to use async-await
pshastricb Sep 27, 2022
8c4c6f9
doc: remove "currently" and comma splice from child_process.md
Trott Sep 27, 2022
0ac9145
tools: refactor deprecated format in no-unescaped-regexp-dot
sonimadhuri Sep 27, 2022
f9548a0
esm: fix duplicated test
GeoffreyBooth Sep 28, 2022
36679e6
test: refactor to async/await
DivyaMohan94 Sep 28, 2022
44c1014
bootstrap: update comments in bootstrap/node.js
joyeecheung Sep 19, 2022
07dadb4
child_process: remove lookup of undefined property
cjihrig Sep 24, 2022
3aa590b
fs: don't hard code name in validatePosition()
cjihrig Sep 24, 2022
1061bd6
test: add extra tests for basename with ext option
connorjburton Sep 29, 2022
4ceef43
test: use async/await in test-debugger-sb-before-load
hopeolaide Sep 29, 2022
f02c6bf
test: change promises to async/await in test-debugger-backtrace.js
zhangjuliet Sep 29, 2022
ebaf8b2
test: migrated from Promise chains to Async/Await
rathi2016 Sep 29, 2022
52144ac
src: remove ParseIP() in cares_wrap.cc
tniessen Sep 29, 2022
232c864
test: use async/await in test-debugger-auto-resume
samyuktaprabhu Sep 16, 2022
ff451f2
crypto: use EVP_PKEY_CTX_set_dsa_paramgen_q_bits when available
davidben Sep 29, 2022
71615ce
node-api: add deprecation code of uncaught exception
legendecas Sep 13, 2022
629c912
test: don't clobber RegExp.$_ on startup
bnoordhuis Oct 7, 2022
02cd9a9
test: loosen test for negative timestamps in `test-fs-stat-date`
LiviaMedeiros Oct 7, 2022
6648459
test: update WPT runner
panva Aug 10, 2022
272503f
crypto: fix webcrypto generateKey() AES key length validation error
panva Aug 8, 2022
af8eb95
crypto: fix webcrypto operation errors to be OperationError
panva Aug 12, 2022
3003a81
crypto: fix webcrypto EC key namedCurve validation errors
panva Aug 8, 2022
e8695cd
crypto: fix webcrypto deriveBits validations
panva Aug 8, 2022
8492b7c
crypto: allow zero-length secret KeyObject
panva Aug 11, 2022
a9db719
crypto: allow zero-length IKM in HKDF and in webcrypto PBKDF2
panva Aug 11, 2022
1d9738a
test,crypto: update WebCryptoAPI WPT
panva Aug 14, 2022
185da5a
tools: increase timeout of running WPT
joyeecheung Sep 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: change promise to async/await in debugger-watcher
PR-URL: #44687
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
Pooja444 authored and juanarbol committed Oct 7, 2022
commit c22962681d8acc63b25ec5dbc37a5eb6573ebbd2
48 changes: 0 additions & 48 deletions test/sequential/test-debugger-watchers.js

This file was deleted.

49 changes: 49 additions & 0 deletions test/sequential/test-debugger-watchers.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { skipIfInspectorDisabled } from '../common/index.mjs';
skipIfInspectorDisabled();

import { path } from '../common/fixtures.mjs';
import startCLI from '../common/debugger.js';

import assert from 'assert';

const script = path('debugger', 'break.js');
const cli = startCLI([script]);

function onFatal(error) {
cli.quit();
throw error;
}

// Stepping through breakpoints.
try {
await cli.waitForInitialBreak();
await cli.waitForPrompt();
await cli.command('watch("x")');
await cli.command('watch("\\"Hello\\"")');
await cli.command('watch("42")');
await cli.command('watch("NaN")');
await cli.command('watch("true")');
await cli.command('watch("[1, 2]")');
await cli.command('watch("process.env")');
await cli.command('watchers');

assert.match(cli.output, /x is not defined/);

await cli.command('unwatch("42")');
await cli.stepCommand('n');

assert.match(cli.output, /0: x = 10/);
assert.match(cli.output, /1: "Hello" = 'Hello'/);
assert.match(cli.output, /2: NaN = NaN/);
assert.match(cli.output, /3: true = true/);
assert.match(cli.output, /4: \[1, 2\] = \[ 1, 2 \]/);
assert.match(
cli.output,
/5: process\.env =\n\s+\{[\s\S]+,\n\s+\.\.\. \}/,
'shows "..." for process.env'
);

await cli.quit();
} catch (error) {
onFatal(error);
}