mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2b4390e15d
Summary: Implement Runtime.compileScript, which is a dev tools request to compile a given script, optionally persisting the compiled result. There are 3 main cases: - Unsuccessful compilation, populates the exception details output. (We could retrieve the line and column number from the exception message, but it felt a bit too hacky.) - Successful unpersisted output, returns an empty result, indicating success - Successful persisted output, returns a result with a unique scriptID that identifies the prepared script. The script IDs end with an index that can be used to infer the location in the vector storing persisted scripts. Changelog: [Internal] Reviewed By: jpporto Differential Revision: D38761119 fbshipit-source-id: 504faad0149d1637682fa11d285f71736c3133e5