-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
a45eeea
commit 2b4390e
Showing
4 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters