react-native-macos/ReactCommon/jsiexecutor/jsireact
Moti Zilberman 71c84cf6be Implement globalEvalWithSourceUrl
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
2019-07-25 10:23:42 -07:00
..
JSIExecutor.cpp Implement globalEvalWithSourceUrl 2019-07-25 10:23:42 -07:00
JSIExecutor.h Implement globalEvalWithSourceUrl 2019-07-25 10:23:42 -07:00
JSINativeModules.cpp Add assorted missing includes in xplat 2019-02-28 00:52:48 -08:00
JSINativeModules.h Update copyright headers 2018-10-19 11:08:57 -07:00