Skip to content

Commit 77c72d4

Browse files
authored
docs: Fixes test code (#5193)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
1 parent 5480cc3 commit 77c72d4

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/02.API-REFERENCE.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -3994,7 +3994,7 @@ jerry_on_throw (jerry_throw_cb_t throw_cb,
39943994

39953995
**Example**
39963996

3997-
[doctest]: # (test="compile")
3997+
[doctest]: # ()
39983998

39993999
```c
40004000
#include "jerryscript.h"
@@ -4063,7 +4063,7 @@ bool jerry_exception_is_captured (jerry_value_t value);
40634063

40644064
**Example**
40654065

4066-
[doctest]: # (test="compile")
4066+
[doctest]: # ()
40674067

40684068
```c
40694069
#include "jerryscript.h"
@@ -4129,7 +4129,7 @@ void jerry_exception_allow_capture (jerry_value_t value, bool should_capture);
41294129

41304130
**Example**
41314131

4132-
[doctest]: # (test="compile")
4132+
[doctest]: # ()
41334133

41344134
```c
41354135
#include "jerryscript.h"
@@ -5036,7 +5036,7 @@ jerry_value_t jerry_module_link (const jerry_value_t module_val,
50365036

50375037
**Example**
50385038

5039-
[doctest]: # (test="compile")
5039+
[doctest]: # (test="link")
50405040

50415041
```c
50425042
#include <jerryscript.h>
@@ -5115,7 +5115,7 @@ jerry_value_t jerry_module_evaluate (const jerry_value_t module_val);
51155115

51165116
**Example**
51175117

5118-
[doctest]: # (test="compile")
5118+
[doctest]: # ()
51195119

51205120
```c
51215121
#include <jerryscript.h>
@@ -5207,7 +5207,7 @@ jerry_module_state_t jerry_module_state (const jerry_value_t module_val);
52075207

52085208
**Example**
52095209

5210-
[doctest]: # (test="compile")
5210+
[doctest]: # ()
52115211

52125212
```c
52135213
#include <jerryscript.h>
@@ -5268,7 +5268,7 @@ void jerry_module_on_state_changed (jerry_module_state_changed_cb_t callback,
52685268

52695269
**Example**
52705270

5271-
[doctest]: # (test="compile")
5271+
[doctest]: # ()
52725272

52735273
```c
52745274
#include <jerryscript.h>
@@ -5346,7 +5346,7 @@ void jerry_module_on_import_meta (jerry_module_import_meta_cb_t callback,
53465346

53475347
**Example**
53485348

5349-
[doctest]: # (test="compile")
5349+
[doctest]: # ()
53505350

53515351
```c
53525352
#include <jerryscript.h>
@@ -5424,7 +5424,7 @@ size_t jerry_module_request_count (const jerry_value_t module_val);
54245424

54255425
**Example**
54265426

5427-
[doctest]: # (test="compile")
5427+
[doctest]: # ()
54285428

54295429
```c
54305430
#include <jerryscript.h>
@@ -5496,7 +5496,7 @@ jerry_value_t jerry_module_request (const jerry_value_t module_val, size_t reque
54965496

54975497
**Example**
54985498

5499-
[doctest]: # (test="compile")
5499+
[doctest]: # ()
55005500

55015501
```c
55025502
#include <jerryscript.h>
@@ -5564,7 +5564,7 @@ jerry_value_t jerry_module_namespace (const jerry_value_t module_val);
55645564

55655565
**Example**
55665566

5567-
[doctest]: # (test="compile")
5567+
[doctest]: # ()
55685568

55695569
```c
55705570
#include <jerryscript.h>
@@ -5632,7 +5632,7 @@ jerry_module_on_import (jerry_module_import_cb_t callback_p,
56325632

56335633
**Example**
56345634

5635-
[doctest]: # (test="compile")
5635+
[doctest]: # ()
56365636

56375637
```c
56385638
#include <jerryscript.h>
@@ -5764,7 +5764,7 @@ jerry_native_module (jerry_native_module_evaluate_cb_t callback,
57645764

57655765
**Example**
57665766

5767-
[doctest]: # (test="compile")
5767+
[doctest]: # ()
57685768

57695769
```c
57705770
#include <jerryscript.h>
@@ -5827,7 +5827,7 @@ jerry_native_module_get (const jerry_value_t native_module_val,
58275827

58285828
**Example**
58295829

5830-
[doctest]: # (test="compile")
5830+
[doctest]: # ()
58315831

58325832
```c
58335833
#include <jerryscript.h>
@@ -5888,7 +5888,7 @@ jerry_value_t jerry_native_module_set (const jerry_value_t native_module_val,
58885888

58895889
**Example**
58905890

5891-
[doctest]: # (test="compile")
5891+
[doctest]: # ()
58925892

58935893
```c
58945894
#include <jerryscript.h>
@@ -12992,7 +12992,7 @@ jerry_arraybuffer_has_buffer (const jerry_value_t value);
1299212992

1299312993
**Example**
1299412994

12995-
[doctest]: # (test="compile")
12995+
[doctest]: # ()
1299612996

1299712997
```c
1299812998
#include "jerryscript.h"
@@ -13058,7 +13058,7 @@ jerry_arraybuffer_heap_allocation_limit (const jerry_length_t allocation_limit);
1305813058

1305913059
**Example**
1306013060

13061-
[doctest]: # (test="compile")
13061+
[doctest]: # ()
1306213062

1306313063
```c
1306413064
#include "jerryscript.h"
@@ -13134,7 +13134,7 @@ jerry_arraybuffer_allocator (jerry_arraybuffer_allocate_cb_t allocate_callback,
1313413134

1313513135
**Example**
1313613136

13137-
[doctest]: # (test="compile")
13137+
[doctest]: # ()
1313813138

1313913139
```c
1314013140
#include "jerryscript.h"

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

+2-2
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)