Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken links generated from Node modules in DevTools
Compiled scripts from Node were set to weak, which caused the script object in V8 being GCed shortly. Hence links of the script shown in console of DevTools become invalid after GC. This patch saved compiled scripts from Node globally to survival from GC. The patch also transformed the filename representation of Node module into `file://` protocol. This fixed links of scripts shown in DevTools that are not loaded in current context. Fixed nwjs/nw.js#4269
- Loading branch information