mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
docs: clarify ask262Debug usage in engine262 evaluation tool descriptions and add usage example.
This commit is contained in:
@@ -11,7 +11,9 @@ export default tool({
|
||||
"Executes JavaScript code in the engine262 JavaScript engine and captures which ECMAScript specification sections are hit during execution. " +
|
||||
"Returns JSON with importantSections and otherSections arrays. " +
|
||||
"Use this to understand how specific JavaScript operations map to the ECMAScript spec. " +
|
||||
"You can use ask262Debug.startImportant() and ask262Debug.stopImportant() in the code to mark important sections.",
|
||||
"ask262Debug is available globally in the execution context (no import needed). " +
|
||||
"Use ask262Debug.startImportant() and ask262Debug.stopImportant() to mark important sections. " +
|
||||
"Example: ask262Debug.startImportant(); let x = 1 + 2; ask262Debug.stopImportant();",
|
||||
args: {
|
||||
code: tool.schema
|
||||
.string()
|
||||
|
||||
Reference in New Issue
Block a user