| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f854d8c commit 2c84601
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -231,10 +231,10 @@ function ensureDebugIsInitialized() { | |||
| 231 | 231 | ||
| 232 | 232 | ||
| 233 | 233 | function inspectPromise(p) { | |
| 234 | - ensureDebugIsInitialized(); | ||
| 235 | 234 | // Only create a mirror if the object is a Promise. | |
| 236 | 235 | if (!binding.isPromise(p)) | |
| 237 | 236 | return null; | |
| 237 | + ensureDebugIsInitialized(); | ||
| 238 | 238 | const mirror = Debug.MakeMirror(p, true); | |
| 239 | 239 | return {status: mirror.status(), value: mirror.promiseValue().value_}; | |
| 240 | 240 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments