| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,27 +27,13 @@ throw new Error("hello") | |||
| 27 | 27 | ||
| 28 | 28 | Error: hello | |
| 29 | 29 | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | 30 | Node.js * | |
| 38 | 31 | [eval]:1 | |
| 39 | 32 | throw new Error("hello") | |
| 40 | 33 | ^ | |
| 41 | 34 | ||
| 42 | 35 | Error: hello | |
| 43 | 36 | ||
| 44 | - | ||
| 45 | - | ||
| 46 | - | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - | ||
| 50 | - | ||
| 51 | 37 | Node.js * | |
| 52 | 38 | 100 | |
| 53 | 39 | [eval]:1 | |
@@ -56,13 +42,6 @@ var x = 100; y = x; | |||
| 56 | 42 | ||
| 57 | 43 | ReferenceError: y is not defined | |
| 58 | 44 | ||
| 59 | - | ||
| 60 | - | ||
| 61 | - | ||
| 62 | - | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - | ||
| 66 | 45 | Node.js * | |
| 67 | 46 | ||
| 68 | 47 | [eval]:1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,14 +14,6 @@ Caused by: | |||
| 14 | 14 | ||
| 15 | 15 | SyntaxError: Strict mode code may not include a with statement | |
| 16 | 16 | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | 17 | Node.js * | |
| 26 | 18 | 42 | |
| 27 | 19 | 42 | |
@@ -31,33 +23,13 @@ throw new Error("hello") | |||
| 31 | 23 | ||
| 32 | 24 | Error: hello | |
| 33 | 25 | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 42 | - | ||
| 43 | - | ||
| 44 | 26 | Node.js * | |
| 45 | 27 | [stdin]:1 | |
| 46 | 28 | throw new Error("hello") | |
| 47 | 29 | ^ | |
| 48 | 30 | ||
| 49 | 31 | Error: hello | |
| 50 | 32 | ||
| 51 | - | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 60 | - | ||
| 61 | 33 | Node.js * | |
| 62 | 34 | 100 | |
| 63 | 35 | [stdin]:1 | |
@@ -66,16 +38,6 @@ let x = 100; y = x; | |||
| 66 | 38 | ||
| 67 | 39 | ReferenceError: y is not defined | |
| 68 | 40 | ||
| 69 | - | ||
| 70 | - | ||
| 71 | - | ||
| 72 | - | ||
| 73 | - | ||
| 74 | - | ||
| 75 | - | ||
| 76 | - | ||
| 77 | - | ||
| 78 | - | ||
| 79 | 41 | Node.js * | |
| 80 | 42 | ||
| 81 | 43 | [stdin]:1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ describe('eval output', { concurrency: true }, () => { | |||
| 11 | 11 | ||
| 12 | 12 | const defaultTransform = snapshot.transform( | |
| 13 | 13 | removeStackTraces, | |
| 14 | + filterEmptyLines, | ||
| 14 | 15 | normalize, | |
| 15 | 16 | snapshot.replaceWindowsLineEndings, | |
| 16 | 17 | snapshot.replaceWindowsPaths, | |
@@ -21,6 +22,10 @@ describe('eval output', { concurrency: true }, () => { | |||
| 21 | 22 | return output.replaceAll(/^ *at .+$/gm, ''); | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 25 | + function filterEmptyLines(output) { | ||
| 26 | + return output.replaceAll(/^\s*$/gm, ''); | ||
| 27 | + } | ||
| 28 | + | ||
| 24 | 29 | const tests = [ | |
| 25 | 30 | { name: 'eval/eval_messages.js' }, | |
| 26 | 31 | { name: 'eval/stdin_messages.js' }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments