Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 42fe0fe

Browse files
committed
chakrashim,src: fix lint issues
PR-URL: #514 Reviewed-By: Seth Brenith <sethb@microsoft.com>
1 parent 0a98060 commit 42fe0fe

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

deps/chakrashim/lib/chakra_shim.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,17 @@
243243
if (!isPrepared) {
244244
const prep = Error.prepareStackTrace || prepareStackTrace;
245245

246-
// Prep can be re-entrant, of sorts, with regards to setting err.stack vs returning what err.stack should be
246+
// Prep can be re-entrant, of sorts, with regards to setting err.stack
247+
// vs returning what err.stack should be.
247248
// We are trying to emulate the following behavior:
248-
// Error.prepareStackTrace = function (err, frames) { err.stack = 1 } -> err.stack should be 1
249-
// Error.prepareStackTrace = function (err, frames) { console.log("Called prepare") } -> err.stack should be undefined
250-
// Error.prepareStackTrace = function (err, frames) { return 2 } -> err.stack should be 2
251-
// Error.prepareStackTrace = function (err, frames) { err.stack = 1; return 2; } -> err.stack should be *1*
249+
// * Error.prepareStackTrace = function (err, frames)
250+
// { err.stack = 1 } -> err.stack should be 1
251+
// * Error.prepareStackTrace = function (err, frames)
252+
// { console.log("Called prepare") } -> err.stack should be undefined
253+
// * Error.prepareStackTrace = function (err, frames)
254+
// { return 2 } -> err.stack should be 2
255+
// * Error.prepareStackTrace = function (err, frames)
256+
// { err.stack = 1; return 2; } -> err.stack should be *1*
252257
const preparedStack = prep(err, ensureStackTrace());
253258
if (!isPrepared) {
254259
stackSetter(preparedStack);

src/node.cc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,16 +3532,17 @@ static void PrintHelp() {
35323532
" supports ${rotation} and ${pid}\n"
35333533
" log-rotation id. %%2$u is the pid.\n"
35343534
#if ENABLE_TTD_NODE
3535-
" --record enable diagnostics record mode\n"
3536-
" --tt-debug debug with interactive time-travel\n"
3537-
" --record-interval=num interval between snapshots in recording\n"
3538-
" (in milliseconds) defaults to 2 seconds\n"
3539-
" --record-history=num number of snapshots retained in log \n"
3540-
" during recording (deafults to 2)\n"
3541-
" --replay=dir replay execution from recording log\n"
3542-
" --replay-debug=dir replay and debug using recording log\n"
3543-
" --break-first break at first statement when running\n"
3544-
" in --replay-debug mode\n"
3535+
" --record enable diagnostics record mode\n"
3536+
" --tt-debug debug with interactive time-travel\n"
3537+
" --record-interval=num interval between snapshots in\n"
3538+
" recording (in milliseconds) (defaults\n"
3539+
" to 2000)\n"
3540+
" --record-history=num number of snapshots retained in log \n"
3541+
" during recording (defaults to 2)\n"
3542+
" --replay=dir replay execution from recording log\n"
3543+
" --replay-debug=dir replay and debug using recording log\n"
3544+
" --break-first break at first statement when running\n"
3545+
" in --replay-debug mode\n"
35453546
#endif
35463547
" --track-heap-objects track heap object allocations for heap "
35473548
"snapshots\n"

0 commit comments

Comments
 (0)