| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4954792 commit c052967
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,6 +186,9 @@ function nativeModuleRequire(id) { | |||
| 186 | 186 | } | |
| 187 | 187 | ||
| 188 | 188 | const mod = NativeModule.map.get(id); | |
| 189 | + // Can't load the internal errors module from here, have to use a raw error. | ||
| 190 | + // eslint-disable-next-line no-restricted-syntax | ||
| 191 | + if (!mod) throw new TypeError(`Missing internal module '${id}'`); | ||
| 189 | 192 | return mod.compile(); | |
| 190 | 193 | } | |
| 191 | 194 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments