Skip to content

Commit 3bec34e

Browse files
author
ada
committed
[DOCGUILD-28570] JavaScript support limitations
1 parent efd6228 commit 3bec34e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

synthetics/api-test/api-test.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following table presents the types of setup steps you can create:
7575
- Extract a variable from formatted data (JSON, XML, or HTML)
7676

7777
* - JavaScript
78-
- Run custom JavaScript code
78+
- Run custom JavaScript code. Splunk Synthetics only supports some JavaScript functions. For details, see :ref:`api-test-javascript`.
7979

8080

8181
.. raw:: html
@@ -115,5 +115,12 @@ The following table presents the types of validation steps you can create:
115115
- Extract a variable from formatted data (JSON, XML, or HTML)
116116

117117
* - JavaScript
118-
- Run custom JavaScript code
118+
- Run custom JavaScript code. Splunk Synthetics only supports some JavaScript functions. For details, see :ref:`api-test-javascript`.
119119

120+
121+
.. _api-test-javascript:
122+
123+
Synthetics support for JavaScript
124+
===============================================
125+
126+
Splunk Synthetics only provides the V8 engine for script execution. It doesn't provide a node runtime. This means that it doesn't support node features like file system access using ``fs``, HTTP modules using ``http``, event loops using ``setTimeout`` and similar functions, module systems such as ``require`` or ``module.exports``, and so on.

0 commit comments

Comments
 (0)