Skip to content

Commit 9b8f879

Browse files
committed
docs: Fixes test code
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
1 parent c509a06 commit 9b8f879

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/02.API-REFERENCE.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,7 @@ jerry_on_throw (jerry_throw_cb_t throw_cb,
39063906

39073907
**Example**
39083908

3909-
[doctest]: # (test="compile")
3909+
[doctest]: # ()
39103910

39113911
```c
39123912
#include "jerryscript.h"
@@ -3974,7 +3974,7 @@ bool jerry_exception_is_captured (jerry_value_t value);
39743974

39753975
**Example**
39763976

3977-
[doctest]: # (test="compile")
3977+
[doctest]: # ()
39783978

39793979
```c
39803980
#include "jerryscript.h"
@@ -4040,7 +4040,7 @@ void jerry_exception_allow_capture (jerry_value_t value, bool should_capture);
40404040

40414041
**Example**
40424042

4043-
[doctest]: # (test="compile")
4043+
[doctest]: # ()
40444044

40454045
```c
40464046
#include "jerryscript.h"
@@ -4847,7 +4847,7 @@ jerry_value_t jerry_module_link (const jerry_value_t module_val,
48474847

48484848
**Example**
48494849

4850-
[doctest]: # (test="compile")
4850+
[doctest]: # (test="link")
48514851

48524852
```c
48534853
#include <jerryscript.h>
@@ -4926,7 +4926,7 @@ jerry_value_t jerry_module_evaluate (const jerry_value_t module_val);
49264926

49274927
**Example**
49284928

4929-
[doctest]: # (test="compile")
4929+
[doctest]: # ()
49304930

49314931
```c
49324932
#include <jerryscript.h>
@@ -4987,7 +4987,7 @@ jerry_module_state_t jerry_module_state (const jerry_value_t module_val);
49874987

49884988
**Example**
49894989

4990-
[doctest]: # (test="compile")
4990+
[doctest]: # ()
49914991

49924992
```c
49934993
#include <jerryscript.h>
@@ -5048,7 +5048,7 @@ void jerry_module_on_state_changed (jerry_module_state_changed_cb_t callback,
50485048

50495049
**Example**
50505050

5051-
[doctest]: # (test="compile")
5051+
[doctest]: # ()
50525052

50535053
```c
50545054
#include <jerryscript.h>
@@ -5126,7 +5126,7 @@ void jerry_module_on_import_meta (jerry_module_import_meta_cb_t callback,
51265126

51275127
**Example**
51285128

5129-
[doctest]: # (test="compile")
5129+
[doctest]: # ()
51305130

51315131
```c
51325132
#include <jerryscript.h>
@@ -5204,7 +5204,7 @@ size_t jerry_module_request_count (const jerry_value_t module_val);
52045204

52055205
**Example**
52065206

5207-
[doctest]: # (test="compile")
5207+
[doctest]: # ()
52085208

52095209
```c
52105210
#include <jerryscript.h>
@@ -5276,7 +5276,7 @@ jerry_value_t jerry_module_request (const jerry_value_t module_val, size_t reque
52765276

52775277
**Example**
52785278

5279-
[doctest]: # (test="compile")
5279+
[doctest]: # ()
52805280

52815281
```c
52825282
#include <jerryscript.h>
@@ -5344,7 +5344,7 @@ jerry_value_t jerry_module_namespace (const jerry_value_t module_val);
53445344

53455345
**Example**
53465346

5347-
[doctest]: # (test="compile")
5347+
[doctest]: # ()
53485348

53495349
```c
53505350
#include <jerryscript.h>
@@ -5412,7 +5412,7 @@ jerry_module_on_import (jerry_module_import_cb_t callback_p,
54125412

54135413
**Example**
54145414

5415-
[doctest]: # (test="compile")
5415+
[doctest]: # ()
54165416

54175417
```c
54185418
#include <jerryscript.h>
@@ -5544,7 +5544,7 @@ jerry_native_module (jerry_native_module_evaluate_cb_t callback,
55445544

55455545
**Example**
55465546

5547-
[doctest]: # (test="compile")
5547+
[doctest]: # ()
55485548

55495549
```c
55505550
#include <jerryscript.h>
@@ -5607,7 +5607,7 @@ jerry_native_module_get (const jerry_value_t native_module_val,
56075607

56085608
**Example**
56095609

5610-
[doctest]: # (test="compile")
5610+
[doctest]: # ()
56115611

56125612
```c
56135613
#include <jerryscript.h>
@@ -5668,7 +5668,7 @@ jerry_value_t jerry_native_module_set (const jerry_value_t native_module_val,
56685668

56695669
**Example**
56705670

5671-
[doctest]: # (test="compile")
5671+
[doctest]: # ()
56725672

56735673
```c
56745674
#include <jerryscript.h>
@@ -12240,7 +12240,7 @@ jerry_arraybuffer_has_buffer (const jerry_value_t value);
1224012240

1224112241
**Example**
1224212242

12243-
[doctest]: # (test="compile")
12243+
[doctest]: # ()
1224412244

1224512245
```c
1224612246
#include "jerryscript.h"
@@ -12306,7 +12306,7 @@ jerry_arraybuffer_heap_allocation_limit (const jerry_length_t allocation_limit);
1230612306

1230712307
**Example**
1230812308

12309-
[doctest]: # (test="compile")
12309+
[doctest]: # ()
1231012310

1231112311
```c
1231212312
#include "jerryscript.h"
@@ -12382,7 +12382,7 @@ jerry_arraybuffer_allocator (jerry_arraybuffer_allocate_cb_t allocate_callback,
1238212382

1238312383
**Example**
1238412384

12385-
[doctest]: # (test="compile")
12385+
[doctest]: # ()
1238612386

1238712387
```c
1238812388
#include "jerryscript.h"

docs/14.EXT-REFERENCE-HANDLE-SCOPE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ JerryScript only supports a single nested hierarchy of scopes. There is only one
1111

1212
**Example**
1313

14-
[doctest]: # (test="compile")
14+
[doctest]: # ()
1515

1616
```c
1717
#include "jerryscript.h"
@@ -55,7 +55,7 @@ It is necessary in common cases that a handle has to be promote to outer scope a
5555
5656
**Example**
5757
58-
[doctest]: # (test="compile")
58+
[doctest]: # ()
5959
6060
```c
6161
#include "jerryscript.h"

0 commit comments

Comments
 (0)