Home
last modified time | relevance | path

Searched refs:jerry_create_number (Results 1 – 25 of 34) sorted by relevance

12

/third_party/jerryscript/tests/unit-core/
Dtest-api-binary-operations-arithmetics.cpp92 T_NAN (JERRY_BIN_OP_ADD, jerry_create_number (3.1), jerry_create_undefined ()),
97 T_ARI (jerry_create_number (3.1), jerry_create_undefined ()),
101 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_number (5.0)),
104 T_ARI (jerry_create_number (5.0), jerry_create_string ((const jerry_char_t *) "foo")),
116 T_ARI (jerry_acquire_value (obj1), jerry_create_number (5.0)),
120 T_NAN (JERRY_BIN_OP_DIV, jerry_create_number (0.0), jerry_create_number (0.0)),
126 T_NAN (JERRY_BIN_OP_REM, jerry_create_number (0.0), jerry_create_number (0.0)),
147 …T (JERRY_BIN_OP_ADD, jerry_create_number (5.0), jerry_create_number (5.0), jerry_create_number (10…
148 …T (JERRY_BIN_OP_ADD, jerry_create_number (3.1), jerry_create_number (10), jerry_create_number (13.…
149 …T (JERRY_BIN_OP_ADD, jerry_create_number (3.1), jerry_create_boolean (true), jerry_create_number (…
[all …]
Dtest-api-binary-operations-comparisons.cpp72 T (JERRY_BIN_OP_STRICT_EQUAL, jerry_create_number (5.0), jerry_create_number (5.0), true),
73 T (JERRY_BIN_OP_STRICT_EQUAL, jerry_create_number (3.1), jerry_create_number (10), false),
74 T (JERRY_BIN_OP_STRICT_EQUAL, jerry_create_number (3.1), jerry_create_undefined (), false),
75 T (JERRY_BIN_OP_STRICT_EQUAL, jerry_create_number (3.1), jerry_create_boolean (true), false),
90 jerry_create_number (5.0),
106 T (JERRY_BIN_OP_STRICT_EQUAL, jerry_acquire_value (obj1), jerry_create_number (5.0), false),
113 T (JERRY_BIN_OP_EQUAL, jerry_create_number (5.0), jerry_create_number (5.0), true),
114 T (JERRY_BIN_OP_EQUAL, jerry_create_number (3.1), jerry_create_number (10), false),
115 T (JERRY_BIN_OP_EQUAL, jerry_create_number (3.1), jerry_create_undefined (), false),
116 T (JERRY_BIN_OP_EQUAL, jerry_create_number (3.1), jerry_create_boolean (true), false),
[all …]
Dtest-api-set-and-clear-error-flag.cpp128 jerry_value_t num = jerry_create_number (test_num);
136 num = jerry_create_number (test_num);
143 num = jerry_create_number (test_num);
154 num = jerry_create_number (test_num);
163 num = jerry_create_number (test_num);
172 num = jerry_create_number (test_num);
182 num = jerry_create_number (test_num);
192 num = jerry_create_number (test_num);
203 jerry_value_t value = jerry_create_number (42);
207 value = jerry_create_number (42);
[all …]
Dtest-internal-properties.cpp86 jerry_value_t prop_value_1 = jerry_create_number (5.5);
87 jerry_value_t prop_value_2 = jerry_create_number (6.5);
88 jerry_value_t prop_value_3 = jerry_create_number (7.5);
90 jerry_value_t internal_prop_value_1 = jerry_create_number (8.5);
91 jerry_value_t internal_prop_value_2 = jerry_create_number (9.5);
92 jerry_value_t internal_prop_value_3 = jerry_create_number (10.5);
Dtest-newtarget.cpp96 jerry_value_t sub_arg = jerry_create_number (TEST_ID_SIMPLE_CALL); in construct_handler()
151 jerry_value_t test_arg = jerry_create_number (TEST_ID_SIMPLE_CONSTRUCT);
160 jerry_value_t test_arg = jerry_create_number (TEST_ID_SIMPLE_CALL);
170 jerry_value_t test_arg = jerry_create_number (TEST_ID_CONSTRUCT_AND_CALL_SUB);
Dtest-typedarray.cpp124 jerry_value_t length_arg = jerry_create_number (test_entries[i].element_count); in test_typedarray_queries()
183 test_number = jerry_create_number (test_int_numbers[j]); in test_property_by_index()
204 test_number = jerry_create_number (test_double_numbers[j]); in test_property_by_index()
242 test_number = jerry_create_number (test_uint_numbers[j]); in test_property_by_index()
260 …jerry_value_t set_undefined = jerry_set_property_by_index (typedarray, 100, jerry_create_number (5… in test_property_by_index()
418 jerry_create_number (11),
Dtest-api-promise.cpp41 jerry_value_t set_result = jerry_set_property (resolve_value, obj_key, jerry_create_number (3)); in test_promise_resolve_success()
76 …jerry_value_t resolve_result = jerry_resolve_or_reject_promise (my_promise, jerry_create_number (5… in test_promise_resolve_success()
139 …jerry_value_t resolve_result = jerry_resolve_or_reject_promise (my_promise, jerry_create_number (5… in test_promise_resolve_fail()
Dtest-proxy.cpp85 return jerry_create_number (demo_value); in handler_get()
115 return jerry_create_number (demo_value); in handler_set()
256 jerry_value_t new_value = jerry_create_number (12);
Dtest-api-value-type.cpp80 ENTRY (JERRY_TYPE_NUMBER, jerry_create_number (-33.0)),
81 ENTRY (JERRY_TYPE_NUMBER, jerry_create_number (3)),
Dtest-api.cpp420 args[0] = jerry_create_number (4);
421 args[1] = jerry_create_number (2);
673 jerry_value_t v_in = jerry_create_number (10.5);
808 val_t = jerry_create_number (6.25);
840 jerry_create_number (4),
841 jerry_create_number (6),
842 jerry_create_number (-2)
859 jerry_value_t num_val = jerry_create_number (123);
Dtest-api-binary-operations-instanceof.cpp120 T (jerry_create_string ((const jerry_char_t *) ""), jerry_create_number (5.0), true),
121 T (jerry_create_number (5.0), jerry_create_string ((const jerry_char_t *) ""), true),
Dtest-symbol.cpp83 jerry_value_t value_1 = jerry_create_number (1);
84 jerry_value_t value_2 = jerry_create_number (2);
Dtest-api-errortype.cpp81 jerry_create_number (11),
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
DI2C-js.cpp106 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
141 jerry_value_t val = jerry_create_number(double(data[i])); in DECLARE_CLASS_FUNCTION()
202 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
238 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
DAnalogIn-js.cpp60 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
85 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
DDigitalOut-js.cpp90 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
114 return jerry_create_number(result); in DECLARE_CLASS_FUNCTION()
DsetTimeout-js.cpp45 return jerry_create_number(id); in DECLARE_GLOBAL_FUNCTION()
DsetInterval-js.cpp45 return jerry_create_number(id); in DECLARE_GLOBAL_FUNCTION()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-method-register.c35 return jerry_create_number (jargc); in method_hello()
263 jerry_create_number (22), in test_error_multiple_functions()
264 jerry_create_number (-3), in test_error_multiple_functions()
Dtest-ext-module-canonical.c92 jerry_value_t prop_value = jerry_create_number (TEST_VALUE); in main()
/third_party/jerryscript/tests/unit-ext/module/
Dmy-custom-module.c24 return jerry_create_number (42); in my_custom_module_on_resolve()
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-launcher/source/
Dsetup.cpp39 jerry_value_t constant_value = jerry_create_number(jsmbed_js_magic_string_values[idx]); in jsmbed_js_load_magic_strings()
/third_party/jerryscript/targets/esp8266/user/
Djerry_run.c72 jerry_value_t val_args[] = { jerry_create_number (ticknow) }; in js_loop()
/third_party/jerryscript/jerry-ext/include/jerryscript-ext/
Dhandler.h60 #define JERRYX_PROPERTY_NUMBER(NAME, NUMBER) (jerryx_property_entry) { NAME, jerry_create_number (N…
/third_party/jerryscript/docs/
D06.REFERENCE-COUNTING.md29 jerry_value_t pi_ref1 = jerry_create_number (3.14);
80 jerry_value_t new_prop_value = jerry_create_number (2.718);

12