71c84cf6be
Summary: Implements a new host function on the global object in debug builds, called `globalEvalWithSourceUrl`. This performs a global `eval()` and attaches a URL/filename to the evaluated script (in stack traces, debuggers, etc). It serves a similar purpose to the `//# sourceURL=` directive (which most JS engines support, but JSC doesn't) and to the old `nativeInjectHMRUpdate` function which was dropped in the JSC->JSI migration. Reviewed By: cpojer Differential Revision: D16491506 fbshipit-source-id: bd9a89311dcbb1d0baece77ead16b9ecfb13bfe3 |
||
---|---|---|
.. | ||
JSIExecutor.cpp | ||
JSIExecutor.h | ||
JSINativeModules.cpp | ||
JSINativeModules.h |