issue_owner_repo
sequencelengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "jerryscript-project", "jerryscript" ]
While working with ESP8266(Xtensa chip) I got a odd exception error that I want to share and ask. Error: ``` Fatal exception (9): epc1=0x402803a2 epc2=0x00000000 epc3=0x00000000 epcvaddr=0x3fff2862 depc=0x00000000 rtn_add=0x40275c55 ``` `rtn_add=0x40275c55` seems to be return address which is, from the memory map, `vm_fill_params_list`. `epc1=0x402803a2` seems to be the PC where it points somewhere in `ecma_append_to_values_collection` I didn't see anything wrong with the code and it works fine for both x86 and arm. I tracked the place and found it was the last line ``` values_p[pos_of_new_value_in_chunk] = ecma_copy_value (v, do_ref_if_object); ``` As I don't have any jtag tools, just old printf to see the value. ``` printf(">> %p %d\r\n", values_p, pos_of_new_value_in_chunk); ``` and got this. ``` >> 3fff2862 0 ``` It's 3'rd byte with this 32bit core, maybe this can be the reason? so I changed the structure with padding. ``` typedef struct { /** Compressed pointer to next chunk */ mem_cpointer_t next_chunk_cp; mem_cpointer_t dummy; /** Characters */ lit_utf8_byte_t data[ sizeof (uint64_t) - sizeof (mem_cpointer_t) * 2 ]; } ecma_collection_chunk_t; ``` And... It worked. But this will reduce 2 bytes... So I tried another one. ``` typedef struct { /** Characters */ lit_utf8_byte_t data[ sizeof (uint64_t) - sizeof (mem_cpointer_t) ]; /** Compressed pointer to next chunk */ mem_cpointer_t next_chunk_cp; } ecma_collection_chunk_t; ``` And... this also worked. I searched with `xtensa + misaligned` and found only there will be exception when misaligned read, and nothing more. So the question, @egavrin, @ruben-ayrapetyan , 1) do you have any experience with such kind? 2) Is it OK to change like the second one?
ecma_collection_chunk_t memory alignment
https://api.github.com/repos/jerryscript-project/jerryscript/issues/675/comments
1
2015-10-20T11:36:23Z
2016-11-25T06:26:39Z
https://github.com/jerryscript-project/jerryscript/issues/675
112,347,958
675
[ "jerryscript-project", "jerryscript" ]
How about adding `void jerry_api_gc (void)` API for triggering GC.
Jerry API for triggering GC.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/672/comments
3
2015-10-19T02:12:50Z
2016-02-09T18:44:35Z
https://github.com/jerryscript-project/jerryscript/issues/672
112,059,296
672
[ "jerryscript-project", "jerryscript" ]
What version of ecmascript is supported in JerryScript?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/671/comments
3
2015-10-16T18:47:25Z
2016-07-28T09:51:05Z
https://github.com/jerryscript-project/jerryscript/issues/671
111,889,590
671
[ "jerryscript-project", "jerryscript" ]
<b>Jerry revision:</b> <pre>08c618e</pre> <b>Test case:</b> ``` javascript function f(){return} ``` It returns with <b>'ERROR: Ln 1, Col 20: Unknown token }'</b> however it is a valid JavaScript code. <b>Expected behaviour:</b> The functions should be parsed correctly that does nothing.
Unknown token error in the return statement
https://api.github.com/repos/jerryscript-project/jerryscript/issues/669/comments
1
2015-10-14T09:15:22Z
2015-10-29T12:26:09Z
https://github.com/jerryscript-project/jerryscript/issues/669
111,356,215
669
[ "jerryscript-project", "jerryscript" ]
jerry_api_get_object_native_handle jerry_api_get_array_index_value jerry_api_get_object_field_value jerry_api_get_object_field_value_sz these functions are get operation but functions need non constant object pointer. I think constant pointer is better if it can. for example: ``` cpp auto cb = [] (const jerry_api_object_t *function_obj_p, const jerry_api_value_t *this_p, jerry_api_value_t *ret_val_p, const jerry_api_value_t args_p[], const jerry_api_length_t args_count) -> bool { uintptr_t p; bool err = !jerry_api_get_object_native_handle(const_cast<jerry_api_object_t*>(function_obj_p), &p); // use p }; jerry_api_object_t *jfunc = jerry_api_create_external_function(cb); ``` In many case, user need native handle when call there external function, but object pointer from external function pointer is constant pointer. so user must casting it to non constant object. What do you think about it?
does get operation really need non constant object?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/668/comments
0
2015-10-14T05:12:40Z
2016-07-14T11:33:24Z
https://github.com/jerryscript-project/jerryscript/issues/668
111,324,937
668
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 08c618e Build: debug.linux ``` ###### OS: ``` Ubuntu 14.04, x86_64 ``` ###### Test case: ``` javascript switch (1) { case 0: assert(false); break; } ``` Output: ``` Script assertion failed ``` The output shows that it executes `case 0:` body. From my observation, this happens when there is no `default` clause. Looks like wrong bytecode is generated.
switch statement jumps to incorrect case body
https://api.github.com/repos/jerryscript-project/jerryscript/issues/667/comments
1
2015-10-13T11:54:54Z
2015-10-30T02:24:33Z
https://github.com/jerryscript-project/jerryscript/issues/667
111,164,477
667
[ "jerryscript-project", "jerryscript" ]
It looks like from `ecma_lcache_insert()`, adding a property of an object increases RC for the object. This sometimes could prevent GC. I'm not sure I'm right about it, but I've reached tentative conclusion by exploring this for a while that this could be significant . For example, if we have a function only called once at the begining of program. ``` function foo(a) { ... } ``` A lexical environment object is created for executing the function, and after finishes, the lexical object could not be freed by GC since a property of it is cached. Please note that as my investigation is incomplete, the truth could be different. But I think we need to check this.
Property lookup cache prevents GC
https://api.github.com/repos/jerryscript-project/jerryscript/issues/665/comments
2
2015-10-13T04:20:28Z
2016-07-28T09:50:50Z
https://github.com/jerryscript-project/jerryscript/issues/665
111,101,842
665
[ "jerryscript-project", "jerryscript" ]
On linux host machine, `CONFIG_MEM_HEAP_AREA_SIZE` would be set 256KB by default. I cannot find the way to set the configuration from CMake build system. I would be useful to set the heap size for host machine so that we can test with memory consumption problem on host without flashing binary into target device.
Enabling setting MEM_HEAP_AREA_SIZE for linux host.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/664/comments
3
2015-10-13T03:50:26Z
2016-08-29T18:10:02Z
https://github.com/jerryscript-project/jerryscript/issues/664
111,098,432
664
[ "jerryscript-project", "jerryscript" ]
HI I build the "jerry" with the steps in http://samsung.github.io/jerryscript/how-to/ ``` make release.linux ``` But when I type ``` ./jerry --mem-stats xxx.js ``` it shows ``` Ignoring memory statistics option because of '!MEM_STATS' build configuration. ``` 1, How can I set the MEM_STATS when building? 2, Is there other flags ? I didn't find then in makefile? Thanks
how to set "MEM_STATS" build configuration
https://api.github.com/repos/jerryscript-project/jerryscript/issues/662/comments
2
2015-10-10T04:54:22Z
2015-11-30T12:00:09Z
https://github.com/jerryscript-project/jerryscript/issues/662
110,768,462
662
[ "jerryscript-project", "jerryscript" ]
Hi Web page http://samsung.github.io/jerryscript/benchmark/benchmark.html shows the performance of jerryscripts. But I have some questions about the page. 1, What is jerry-snapshot and how to build it? 2, Which cases in sunspider and ubench are run during the performance test? How can we reproduce the whole test? Thanks
question about jerry benchmark and jerry snapshot
https://api.github.com/repos/jerryscript-project/jerryscript/issues/661/comments
4
2015-10-10T04:45:50Z
2016-02-11T13:35:22Z
https://github.com/jerryscript-project/jerryscript/issues/661
110,768,216
661
[ "jerryscript-project", "jerryscript" ]
``` ./jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp: In function ‘ecma_builtin_global_object_decode_uri_helper’: ./jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:908:56: error: ‘decoded_byte’ may be used uninitialized in this function [-Werror=maybe-uninitialized] *output_char_p = (lit_utf8_byte_t) decoded_byte; ^ compilation terminated due to -Wfatal-errors. ```
Build failed with -O3
https://api.github.com/repos/jerryscript-project/jerryscript/issues/657/comments
1
2015-10-02T19:56:33Z
2016-02-12T10:42:25Z
https://github.com/jerryscript-project/jerryscript/issues/657
109,561,520
657
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 98fc409 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript switch(null) { case "foo": for(v_0 in v_1) } case "bar": ``` Backtrace: ``` Program received signal SIGSEGV, Segmentation fault. 0x0000000000417a31 in case_clauses_stack_element(unsigned long) [clone .lto_priv.239] (elem=1) at jerryscript/jerry-core/parser/js/opcodes-dumper.cpp:107 107 STATIC_STACK (case_clauses, vm_instr_counter_t) (gdb) bt #0 0x0000000000417a31 in case_clauses_stack_element(unsigned long) [clone .lto_priv.239] (elem=1) at jerryscript/jerry-core/parser/js/opcodes-dumper.cpp:107 #1 0x000000000040fcde in rewrite_case_clause () at jerryscript/jerry-core/parser/js/opcodes-dumper.cpp:2069 #2 0x000000000043ce8b in parse_switch_statement () at jerryscript/jerry-core/parser/js/parser.cpp:2465 #3 0x000000000043db3e in parse_statement(jsp_label_t*) [clone .lto_priv.548] (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2850 #4 0x000000000043dd8f in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2917 #5 0x000000000043dee6 in parse_source_element_list(bool, bool) [clone .lto_priv.549] (is_global=true, is_try_replace_local_vars_with_regs=false) at jerryscript/jerry-core/parser/js/parser.cpp:2992 #6 0x000000000043e388 in parser_parse_program (source_p=0x6e1f00 <_ZL6buffer.lto_priv.1225> "switch(null)\n{\n case \"foo\": \n for(v_0 in v_1)\n}\ncase \"bar\":", source_size=69, in_dyn_constructed_function=false, in_eval=false, is_strict=false, out_bytecode_data_p=0x7fffffffcc18, out_contains_functions_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:3168 #7 0x000000000043e57c in parser_parse_script (source=0x6e1f00 <_ZL6buffer.lto_priv.1225> "switch(null)\n{\n case \"foo\": \n for(v_0 in v_1)\n}\ncase \"bar\":", source_size=69, out_bytecode_data_p=0x7fffffffcc18) at jerryscript/jerry-core/parser/js/parser.cpp:3255 #8 0x00000000004a79a7 in jerry_parse (source_p=0x6e1f00 <_ZL6buffer.lto_priv.1225> "switch(null)\n{\n case \"foo\": \n for(v_0 in v_1)\n}\ncase \"bar\":", source_size=69) at jerryscript/jerry-core/jerry.cpp:1430 #9 0x00000000004a63c3 in main (argc=2, argv=0x7fffffffd108) at jerryscript/main-linux.cpp:451 ```
Segmentation fault in case_clauses_stack_element
https://api.github.com/repos/jerryscript-project/jerryscript/issues/656/comments
1
2015-10-02T18:02:54Z
2016-11-25T06:26:38Z
https://github.com/jerryscript-project/jerryscript/issues/656
109,541,321
656
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 98fc409 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript if (true) {} /a/; ``` Output: ``` /a/; ^ ERROR: Ln 2, Col 1: Unknown token / ```
if statement followed by a regex literal throws parse error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/655/comments
1
2015-10-02T15:29:12Z
2015-10-22T11:07:08Z
https://github.com/jerryscript-project/jerryscript/issues/655
109,514,995
655
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 98fc409 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript switch (true) { case {"foo": "bar"}: break; } ``` Output: ``` break; ^ ERROR: Ln 3, Col 14: No corresponding statement for the break ``` According to ecma5, the expression above should be parsed (in spite of that the given clause value will never be equal to any switch condition).
Object literals in case selectors are not supported
https://api.github.com/repos/jerryscript-project/jerryscript/issues/654/comments
2
2015-10-02T12:33:20Z
2015-11-19T10:59:05Z
https://github.com/jerryscript-project/jerryscript/issues/654
109,482,129
654
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 98fc409 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var a = "foo"; switch(a) { case true ? "foo" : "bar": print("OK"); break; } ``` Output: ``` case true ? "foo" : "bar": ^ ERROR: Ln 3, Col 30: Expected either ';' or newline token ``` According to ecma5, any expression can stand in a case clause after the 'case' keyword but ternary statements are rejected in jerry.
Conditional operator is not supported in case clauses
https://api.github.com/repos/jerryscript-project/jerryscript/issues/653/comments
2
2015-10-02T11:18:31Z
2015-11-19T11:01:17Z
https://github.com/jerryscript-project/jerryscript/issues/653
109,473,829
653
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 98fc409 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript this / 10 ``` Output: ``` this / 10 ^ ERROR: Ln 1, Col 6: Unterminated RegExp literal ```
Divisions are not parsed correctly
https://api.github.com/repos/jerryscript-project/jerryscript/issues/652/comments
1
2015-10-02T09:44:54Z
2015-10-22T11:02:17Z
https://github.com/jerryscript-project/jerryscript/issues/652
109,461,834
652
[ "jerryscript-project", "jerryscript" ]
I get this error when mem_stats is turned on with iotjs ``` ICE: Assertion 'lit_ids != NULL' failed at /.../harmony/iotjs/deps/jerry /jerry-core/vm/pretty-printer.cpp(var_to_str):102. ``` ##### How to reproduce 1) get latest iotjs 2) build iotjs with mem_stats on ``` ./tools/build.py --jerry-memstats --no-checktest ``` 3) run test (any test will do) ``` cd test/run_pass ../../build/x86_64-linux/debug/iotjs/iotjs test_httpserver.js ```
ICE: Assertion 'lit_ids != NULL' failed error with mem_stats
https://api.github.com/repos/jerryscript-project/jerryscript/issues/649/comments
2
2015-09-30T10:59:45Z
2016-02-15T01:20:08Z
https://github.com/jerryscript-project/jerryscript/issues/649
109,063,330
649
[ "jerryscript-project", "jerryscript" ]
Hello. Pull request #635 removed special representation of concatenated strings. While the change reduced memory usage and significantly improved performance for many cases, it also significantly increased memory consumption for other cases. For example: ``` js var i = '0123456789ABCDEF'; for (j = 0; j < 12; j++) { i += i; } print (i[124]); ``` Please, see memory statistics for the following versions: 66975236bc42fdfcfcb74b6996601c1401f2b62e (base version) -> 3b0f61ac52bacf3747c5436f050da40f3f377a27 (the patch) - Heap stats: - Peak allocated chunks count = 1037 -> 3081 - Peak allocated = 66292 -> 197108 bytes - Peak waste = 199 -> 199 bytes - Pools stats: - Peak pools: 8 -> 2052 - Peak allocated chunks: 63 -> 16416 ``` js var i = '0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF'; var j = 'abcdefghijklmnopabcdefghijklmnopabcdefghijklmnopabcdefghijklmnop'; var a = ''; for (k = 0; k < 16; k++) { if (k % 4 == 0) { a += (i + j); } else if (k % 2 == 0) { i += a; } else { j += a; } } print (a[124]); ``` - Heap stats: - Peak allocated chunks count = 367 -> 2533 - Peak allocated = 23420 -> 162044 bytes - Peak waste = 191 -> 191 bytes - Pools stats: - Peak pools: 10 -> 1943 - Peak allocated chunks: 73 -> 15540 ``` js var i = '01'; var j = 'ab'; var a = ''; for (k = 0; k < 16; k++) { if (k % 4 == 0) { a += (i + j); } else if (k % 2 == 0) { i += a; } else { j += a; } } print (a[124]); ``` - Heap stats: - Peak allocated chunks count = 63 -> 92 - Peak allocated = 3843 -> 5766 bytes - Peak waste = 191 -> 191 bytes - Pools stats: - Peak pools: 10 -> 56 - Peak allocated chunks: 75 -> 525 <br/> Please, see also the related conversation: https://github.com/Samsung/jerryscript/pull/635#issuecomment-143723345
Investigation of possible reprentations of concatenated strings
https://api.github.com/repos/jerryscript-project/jerryscript/issues/648/comments
2
2015-09-29T16:05:31Z
2016-11-25T06:26:38Z
https://github.com/jerryscript-project/jerryscript/issues/648
108,902,249
648
[ "jerryscript-project", "jerryscript" ]
``` b (b) = c ``` The CBC parser correctly handles this, so it might not worth fix it at all. But I leave it here as a note.
Invalid left-hand-side expression
https://api.github.com/repos/jerryscript-project/jerryscript/issues/646/comments
2
2015-09-24T07:36:31Z
2016-11-25T06:26:38Z
https://github.com/jerryscript-project/jerryscript/issues/646
108,075,132
646
[ "jerryscript-project", "jerryscript" ]
For some embed device with discontinued RAM area it would be good to set Jerry Heap to be configured as several segments, say 2 or 4, where currently we can set only one. For example, some STM32F4 has two address of RAM, one is normal RAM from 0x20000000 size 128K and special RAM called CCM from 0x10000000 size 64K. If we can set JerryHeap to be configured to reside in two ares, we can make JerryHeap more bigger. Though we can manually configure loader script to set specific static variables to CCM but it can have other issues.
Supporting discontinued segment of RAM for Heap
https://api.github.com/repos/jerryscript-project/jerryscript/issues/645/comments
3
2015-09-24T00:55:38Z
2017-01-31T13:29:30Z
https://github.com/jerryscript-project/jerryscript/issues/645
108,035,526
645
[ "jerryscript-project", "jerryscript" ]
<b>Jerry version:</b> ``` Checked revision: 6697523 ``` <b>Test case:</b> ``` js function a() { for (i = 1; i < 5; i++) if (i) { 5; } } ``` It returns with <b>'ERROR: Ln 8, Col 1: Unexpected token'</b> however it is a valid JavaScript code. <b> Expected behaviour: </b> ``` For loop should be parsed correctly without needing a block. ```
Unexpected token error when using for loop without block
https://api.github.com/repos/jerryscript-project/jerryscript/issues/644/comments
3
2015-09-23T12:59:44Z
2016-02-25T08:00:05Z
https://github.com/jerryscript-project/jerryscript/issues/644
107,913,607
644
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6697523 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Function.prototype.length = function() { }; Function.prototype.bind(0); ``` ###### Backtrace: ``` ICE: Assertion 'ecma_is_value_number (len_value)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp(ecma_builtin_function_prototype_object_bind):281. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=9631, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000436073 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004360c2 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4cc2e0 "ecma_is_value_number (len_value)", file=0x4cc148 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp", function=0x4afb00 <_ZZL43ecma_builtin_function_prototype_object_bindjPKjjE8__func__.lto_priv.902> "ecma_builtin_function_prototype_object_bind", line=281) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x000000000048d37e in ecma_builtin_function_prototype_object_bind (this_arg=535, arguments_list_p=0x921700 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp:281 #6 0x000000000048cb4f in ecma_builtin_function_prototype_dispatch_routine (builtin_routine_id=199, this_arg_value=535, arguments_list=0x921700 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.inc.h:64 #7 0x000000000049b740 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE, builtin_routine_id=199, this_arg_value=535, arguments_list=0x921700 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:108 #8 0x000000000049aec8 in ecma_builtin_dispatch_call (obj_p=0x8e29a8 <mem_heap+1576>, this_arg_value=535, arg_collection_p=0x8e29c0 <mem_heap+1600>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:478 #9 0x000000000044bc21 in ecma_op_function_call (func_obj_p=0x8e29a8 <mem_heap+1576>, this_arg_value=535, arg_collection_p=0x8e29c0 <mem_heap+1600>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:892 #10 0x0000000000433ba1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcf50) at jerryscript/jerry-core/vm/opcodes.cpp:829 #11 0x00000000004a5ae5 in vm_loop (frame_ctx_p=0x7fffffffcf50, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #12 0x00000000004a5d89 in vm_run_from_pos (header_p=0x8e2840 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e27a0 <mem_heap+1056>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:637 #13 0x00000000004a5805 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #14 0x00000000004abebe in jerry_run () at jerryscript/jerry-core/jerry.cpp:1464 #15 0x00000000004aa878 in main (argc=3, argv=0x7fffffffd558) at jerryscript/main-linux.cpp:458 ```
Assertion 'ecma_is_value_number (len_value)' failed in ecma_builtin_function_prototype_object_bind
https://api.github.com/repos/jerryscript-project/jerryscript/issues/642/comments
0
2015-09-21T09:55:34Z
2015-10-20T15:11:02Z
https://github.com/jerryscript-project/jerryscript/issues/642
107,479,237
642
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6697523 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Object.freeze(RegExp.prototype.compile)(); ``` ###### Backtrace: ``` ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_get_object_from_value):329. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=9502, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000436073 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004360c2 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4c42e0 "ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT", file=0x4c4138 "jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp", function=0x4b2910 <_ZZ26ecma_get_object_from_valuejE8__func__.lto_priv.629> "ecma_get_object_from_value", line=329) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x0000000000456bd9 in ecma_get_object_from_value (value=4) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:329 #6 0x000000000041c531 in ecma_builtin_regexp_prototype_compile (this_arg=4, pattern_arg=4, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:65 #7 0x000000000041c485 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=200, this_arg_value=4, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #8 0x000000000049b7dc in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=200, this_arg_value=4, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #9 0x000000000049aec8 in ecma_builtin_dispatch_call (obj_p=0x8e2990 <mem_heap+1552>, this_arg_value=4, arg_collection_p=0x8e2920 <mem_heap+1440>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:478 #10 0x000000000044bc21 in ecma_op_function_call (func_obj_p=0x8e2990 <mem_heap+1552>, this_arg_value=4, arg_collection_p=0x8e2920 <mem_heap+1440>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:892 #11 0x0000000000433ba1 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffcf50) at jerryscript/jerry-core/vm/opcodes.cpp:829 #12 0x00000000004a5ae5 in vm_loop (frame_ctx_p=0x7fffffffcf50, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #13 0x00000000004a5d89 in vm_run_from_pos (header_p=0x8e2840 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e27a0 <mem_heap+1056>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:637 #14 0x00000000004a5805 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #15 0x00000000004abebe in jerry_run () at jerryscript/jerry-core/jerry.cpp:1464 #16 0x00000000004aa878 in main (argc=3, argv=0x7fffffffd558) at jerryscript/main-linux.cpp:458 ```
Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed in ecma_get_object_from_value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/641/comments
2
2015-09-21T09:51:19Z
2016-11-25T06:26:38Z
https://github.com/jerryscript-project/jerryscript/issues/641
107,478,739
641
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6697523 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript function f_0() { var f_0 = 10; } ``` Note: although the test case looks similar to #639 but since the traces are different it might need a distinct solution. ###### Backtrace: ``` ICE: Assertion 'table_p->buckets[block_id] != NULL' failed at jerryscript/jerry-core/parser/js/collections/lit-id-hash-table.cpp(lit_id_hash_table_lookup):121. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=9390, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000436073 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004360c2 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c03a8 "table_p->buckets[block_id] != NULL", file=0x4c0300 "jerryscript/jerry-core/parser/js/collections/lit-id-hash-table.cpp", function=0x4b3a50 <_ZZ24lit_id_hash_table_lookupP17lit_id_hash_tablehtE8__func__.lto_priv.488> "lit_id_hash_table_lookup", line=121) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x000000000043f7cb in lit_id_hash_table_lookup (table_p=0x8e2850 <mem_heap+1232>, uid=131 '\203', oc=2) at jerryscript/jerry-core/parser/js/collections/lit-id-hash-table.cpp:121 #6 0x000000000043e920 in serializer_get_literal_cp_by_uid (id=131 '\203', bytecode_data_p=0x8e2840 <mem_heap+1216>, oc=2) at jerryscript/jerry-core/parser/js/serializer.cpp:100 #7 0x0000000000433428 in opfunc_func_decl_n (instr=..., frame_ctx_p=0x7fffffffcf50) at jerryscript/jerry-core/vm/opcodes.cpp:546 #8 0x00000000004a5ae5 in vm_loop (frame_ctx_p=0x7fffffffcf50, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #9 0x00000000004a5d89 in vm_run_from_pos (header_p=0x8e2840 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e27a0 <mem_heap+1056>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:637 #10 0x00000000004a5805 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #11 0x00000000004abebe in jerry_run () at jerryscript/jerry-core/jerry.cpp:1464 #12 0x00000000004aa878 in main (argc=3, argv=0x7fffffffd558) at jerryscript/main-linux.cpp:458 ```
Assertion 'table_p->buckets[block_id] != NULL' failed in lit_id_hash_table_lookup
https://api.github.com/repos/jerryscript-project/jerryscript/issues/640/comments
1
2015-09-21T09:48:03Z
2015-11-19T11:05:58Z
https://github.com/jerryscript-project/jerryscript/issues/640
107,478,039
640
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6697523 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Math.min(10); function f_0() {}; function f_1() { var f_1 = Date.prototype.getMilliseconds(Date.prototype.setUTCMonth); } ``` ###### Backtrace: ``` ICE: Assertion 'lit_literal_exists (lit)' failed at jerryscript/jerry-core/lit/lit-literal.cpp(lit_get_literal_by_cp):554. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004acb25 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=8646, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000436073 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004360c2 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4d0253 "lit_literal_exists (lit)", file=0x4d01d8 "jerryscript/jerry-core/lit/lit-literal.cpp", function=0x4ad3e0 <_ZZ21lit_get_literal_by_cpN15rcs_recordset_t8record_t10cpointer_tEE8__func__.lto_priv.1149> "lit_get_literal_by_cp", line=554) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x00000000004a1402 in lit_get_literal_by_cp (lit_cp=...) at jerryscript/jerry-core/lit/lit-literal.cpp:554 #6 0x000000000045ba78 in ecma_init_ecma_string_from_lit_cp (string_p=0x8e2990 <mem_heap+1552>, lit_cp=..., is_stack_var=false) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:331 #7 0x000000000045c187 in ecma_new_ecma_string_from_lit_cp (lit_cp=...) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:551 #8 0x0000000000433382 in function_declaration (frame_ctx_p=0x7fffffffcf50, function_name_lit_cp=..., formal_params_collection_p=0x8e2988 <mem_heap+1544>) at jerryscript/jerry-core/vm/opcodes.cpp:514 #9 0x000000000043347d in opfunc_func_decl_n (instr=..., frame_ctx_p=0x7fffffffcf50) at jerryscript/jerry-core/vm/opcodes.cpp:558 #10 0x00000000004a5ae5 in vm_loop (frame_ctx_p=0x7fffffffcf50, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:545 #11 0x00000000004a5d89 in vm_run_from_pos (header_p=0x8e2840 <mem_heap+1216>, start_pos=1, this_binding_value=523, lex_env_p=0x8e27a0 <mem_heap+1056>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:637 #12 0x00000000004a5805 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:415 #13 0x00000000004abebe in jerry_run () at jerryscript/jerry-core/jerry.cpp:1464 #14 0x00000000004aa878 in main (argc=3, argv=0x7fffffffd558) at jerryscript/main-linux.cpp:458 ```
Assertion 'lit_literal_exists (lit)' failed in lit_get_literal_by_cp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/639/comments
2
2015-09-21T09:32:09Z
2015-11-19T11:06:45Z
https://github.com/jerryscript-project/jerryscript/issues/639
107,475,462
639
[ "jerryscript-project", "jerryscript" ]
JerryScript provides a feature for reporting memory usage but we can only check it after program finishes. How about adding a API `jerry_api_mem_stats()` for reporting memory stats so that we can see it in middle of program execution. This will helpful to check how memory usage is changing during execution. I'm fine with either printing memory stats directly out to stdout or retrieving it.
Jerry API for reporting memory stats.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/637/comments
1
2015-09-21T01:48:15Z
2016-02-11T13:48:01Z
https://github.com/jerryscript-project/jerryscript/issues/637
107,430,435
637
[ "jerryscript-project", "jerryscript" ]
Adding this issue as a task to support for NuttX.
Support NuttX platform as an interpreter
https://api.github.com/repos/jerryscript-project/jerryscript/issues/636/comments
2
2015-09-21T00:11:53Z
2016-08-16T10:37:00Z
https://github.com/jerryscript-project/jerryscript/issues/636
107,425,982
636
[ "jerryscript-project", "jerryscript" ]
recent PR about snapshot introduces bit field assignment code. `header.is_run_global = is_for_global;` at 1605 in jerry.cpp `tree->strict_mode = strict_mode;` at parser/js/scopes-tree.cpp When cross-compiling jerry(inside IoT.js), it exits with the following msg : /home/twoflower/usr/dev/harmony/iotjs_github/deps/jerry/jerry-core/jerry.cpp:1607:24: error: conversion to 'unsigned char:1' from 'uint32_t {aka unsigned int}' may alter its value [-Werror=conversion] header.is_run_global = is_for_global; ^ compilation terminated due to -Wfatal-errors. cc1plus: all warnings being treated as errors My arm-none-eabi-gcc version : gcc version 4.8.2 (4.8.2-14ubuntu1+6) `header.is_run_global = is_for_global?1:0;` makes compilation OK. Should I submit PR for this or Am I missing something ?
arm build fail for assignment to bit field
https://api.github.com/repos/jerryscript-project/jerryscript/issues/634/comments
2
2015-09-17T00:23:32Z
2015-11-19T12:21:16Z
https://github.com/jerryscript-project/jerryscript/issues/634
106,889,733
634
[ "jerryscript-project", "jerryscript" ]
Compact byte code (CBC) is the next generation of byte code for Jerry, which can reduce the byte code size around 50%. It also solves parser memory issues, left-hand-side issues, etc. The project is in its early phase, but the following examples shows the idea. All values are stored on a stack, all operations happen there. Several byte codes are "complex", so they do multiple things. ``` // a + b 0 : [ 1] CBC_PUSH_IDENT 1:literal<b> 2 : [ 1] CBC_BINARY_ADD_LEFT_LITERAL 0:literal<a> 4 : [ 0] CBC_POP Parse successfully completed. Generated byte code size: 5 bytes In Jerry: 8 bytes (37.5% saving) 2: assignment 130 6 0 // tmp130 = a : TYPEOF(a); 3: addition 131 130 1 // tmp131 = tmp130 + b; // a = b + -c * ((d.c)++ - e) 0 : [ 1] CBC_UNARY_NEGATE_LITERAL 2:literal<c> 2 : [ 2] CBC_PUSH_IDENT 3:literal<d> 4 : [ 2] CBC_POST_INCR_PROP_STRING_PUSH_RESULT 4:string<c> 6 : [ 2] CBC_BINARY_SUBTRACT_RIGHT_LITERAL 5:literal<e> 8 : [ 1] CBC_MULTIPLY 9 : [ 1] CBC_BINARY_ADD_LEFT_LITERAL 1:literal<b> 11 : [ 0] CBC_ASSIGN_IDENT 0:literal<a> Parse successfully completed. Generated byte code size: 13 bytes In Jerry: 36 bytes (63.8% saving) 2: assignment 130 6 0 // tmp130 = b : TYPEOF(b); 3: unary_minus 131 1 // tmp131 = -c; 4: assignment 132 5 1 // tmp132 = 'c': STRING; 5: prop_getter 133 2 132 // tmp133 = d[tmp132]; 6: post_incr 134 133 // tmp134 = tmp133++; 7: substraction 135 134 3 // tmp135 = tmp134 - e; 8: multiplication 136 131 135 // tmp136 = tmp131 * tmp135; 9: addition 137 130 136 // tmp137 = tmp130 + tmp136; 10: assignment 4 6 137 // a = tmp137 : TYPEOF(tmp137); ``` Of course nothing is set in stone at the moment, all suggestion are welcome. Especially the byte code definitions, which is the most important part of the project. See https://github.com/Samsung/jerryscript/tree/compact_byte_code_supp_dev
Implement compact byte code (CBC) support in Jerry
https://api.github.com/repos/jerryscript-project/jerryscript/issues/630/comments
10
2015-09-16T11:03:37Z
2016-02-09T09:23:12Z
https://github.com/jerryscript-project/jerryscript/issues/630
106,750,346
630
[ "jerryscript-project", "jerryscript" ]
Current snapshot exploits `sizeof(lit_magic_string_id_t)` function in `jrt_read_from_buffer_by_offset`. In NUTTX OS, size of `enum` is 1 byte instead of 4 bytes. Due to this, iotjs(snapshot-dev branch) does not work in NUTTX on STM32F4. We need to figure out a way to run snapshot on various platforms.
Snapshot does not work on nuttx(STM32F4)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/627/comments
1
2015-09-14T08:11:32Z
2016-11-25T06:26:38Z
https://github.com/jerryscript-project/jerryscript/issues/627
106,291,497
627
[ "jerryscript-project", "jerryscript" ]
Hi, I've made an all-in-one build for jerryscript. With this method we can reach smaller binary size. You can see the details below. If you want to try it you can download it from here: https://github.com/tczene/jerryscript/tree/all_in_one This patch is only an example, not ready yet. Do you think this is a good idea? Should I continue it? ##### original build: size -A build/bin/release.mcu_stm32f4-cp/jerry build/bin/release.mcu_stm32f4-cp/jerry : | section | size | addr | | --- | --- | --- | | .isr_vector | 392 | 134217728 | | .text | 153220 | 134218120 | | .ARM | 8 | 134371340 | | .init_array | 4 | 134371348 | | .data | 296 | 536870912 | | .bss | 21952 | 536871232 | | ._user_heap_stack | 1024 | 536893184 | | .ARM.attributes | 55 | 0 | | .debug_info | 869597 | 0 | | .debug_abbrev | 40949 | 0 | | .debug_loc | 559999 | 0 | | .debug_aranges | 1128 | 0 | | .debug_ranges | 81976 | 0 | | .debug_line | 115396 | 0 | | .debug_str | 110440 | 0 | | .comment | 112 | 0 | | .debug_frame | 18700 | 0 | | Total | 1975248 | | ls -lh build/bin/release.mcu_stm32f4-cp/jerry 2.0M build/bin/release.mcu_stm32f4-cp/jerry ls -lh build/bin/release.mcu_stm32f4-cp/jerry.bin 151K build/bin/release.mcu_stm32f4-cp/jerry.bin ##### all-in-one build: size -A build/bin/release.mcu_stm32f4-cp/jerry build/bin/release.mcu_stm32f4-cp/jerry : | section | size | addr | | --- | --- | --- | | .isr_vector | 392 | 134217728 | | .text | 150632 | 134218120 | | .ARM | 8 | 134368752 | | .init_array | 4 | 134368760 | | .data | 260 | 536870912 | | .bss | 19968 | 536871232 | | ._user_heap_stack | 1024 | 536891200 | | .ARM.attributes | 55 | 0 | | .debug_info | 791910 | 0 | | .debug_abbrev | 47869 | 0 | | .debug_loc | 515231 | 0 | | .debug_aranges | 1112 | 0 | | .debug_ranges | 81784 | 0 | | .debug_line | 118910 | 0 | | .debug_str | 111149 | 0 | | .comment | 112 | 0 | | .debug_frame | 17232 | 0 | | Total | 1857652 | | ls -lh build/bin/release.mcu_stm32f4-cp/jerry 1.9M build/bin/release.mcu_stm32f4-cp/jerry ls -lh build/bin/release.mcu_stm32f4-cp/jerry.bin 148K build/bin/release.mcu_stm32f4-cp/jerry.bin
all-in-one build
https://api.github.com/repos/jerryscript-project/jerryscript/issues/626/comments
14
2015-09-11T08:45:46Z
2015-12-16T09:55:07Z
https://github.com/jerryscript-project/jerryscript/issues/626
105,969,046
626
[ "jerryscript-project", "jerryscript" ]
Hello. Some GC stress testing mode should be introduced to help revealing issues like #251 and #599, as @zherczeg suggested in https://github.com/Samsung/jerryscript/pull/251#issuecomment-117557989.
GC stress testing
https://api.github.com/repos/jerryscript-project/jerryscript/issues/619/comments
0
2015-09-07T12:56:20Z
2015-09-09T17:51:48Z
https://github.com/jerryscript-project/jerryscript/issues/619
105,211,197
619
[ "jerryscript-project", "jerryscript" ]
@ruben-ayrapetyan , regarding issue comment https://github.com/Samsung/iotjs/issues/212#issuecomment-137080946 can it be possible to extend or add a new function besides jerry_api_eval() so that ``` jerry_api_eval(wrapper[0], ...); jerry_api_eval(source, ...); jerry_api_eval(wrapper[1], ...); ``` may work ? This may be one way not to make additional string buffer for concatenation. Simple or better ways are welcome.
Partial jerry_api_eval()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/615/comments
5
2015-09-03T07:57:44Z
2016-07-27T06:23:36Z
https://github.com/jerryscript-project/jerryscript/issues/615
104,642,567
615
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: a26c454 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript JSON.stringify & (Date = 1) ``` ###### Backtrace: ``` javascript ICE: Assertion '!ecma_is_value_empty (reg_value)' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(get_variable_value):87. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004b445f in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004b445f in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=4162, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000043de52 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000043dea1 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4d99b0 "!ecma_is_value_empty (reg_value)", file=0x4d9918 "jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp", function=0x4b5960 <_ZZ18get_variable_valueP14vm_frame_ctx_thbE8__func__.lto_priv.1158> "get_variable_value", line=87) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x00000000004aa574 in get_variable_value (frame_ctx_p=0x7fffffffd550, var_idx=131 '\203', do_eval_or_arguments_check=false) at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:87 #6 0x00000000004b15d5 in opfunc_b_and (instr=..., frame_ctx_p=0x7fffffffd550) at jerryscript/jerry-core/vm/opcodes-ecma-bitwise.cpp:131 #7 0x00000000004b0b93 in vm_loop (frame_ctx_p=0x7fffffffd550, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484 #8 0x00000000004b0e2c in vm_run_from_pos (instrs_p=0x7ef508 <mem_heap+12808>, start_pos=1, this_binding_value=1275, lex_env_p=0x7ef448 <mem_heap+12616>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:575 #9 0x00000000004b09fd in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413 #10 0x00000000004b3b9d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1445 #11 0x00000000004b2556 in main (argc=3, argv=0x7fffffffd918) at jerryscript/main-linux.cpp:295 ```
Assertion '!ecma_is_value_empty (reg_value)' failed in get_variable_value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/614/comments
2
2015-09-03T07:47:39Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/614
104,640,363
614
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: a26c454 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript a = "é" ``` ###### Output: ``` ERROR: Ln 1, Col 1: Invalid source encoding ```
Invalid source encoding error when using Hungarian characters
https://api.github.com/repos/jerryscript-project/jerryscript/issues/613/comments
1
2015-09-02T19:45:40Z
2015-11-19T11:07:59Z
https://github.com/jerryscript-project/jerryscript/issues/613
104,557,753
613
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: a26c454 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript RegExp.prototype.compile([]); ``` ###### Backtrace: ``` javascript ICE: Assertion 'compressed_pointer != MEM_CP_NULL' failed at jerryscript/jerry-core/mem/mem-heap.cpp(mem_heap_decompress_pointer):777. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a9c8c in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a9c8c in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=8837, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000043a3e9 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000043a438 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4ce020 "compressed_pointer != MEM_CP_NULL", file=0x4cda28 "jerryscript/jerry-core/mem/mem-heap.cpp", function=0x4aac30 <_ZZ27mem_heap_decompress_pointermE8__func__.lto_priv.1131> "mem_heap_decompress_pointer", line=777) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97 #5 0x00000000004a5089 in mem_heap_decompress_pointer (compressed_pointer=0) at jerryscript/jerry-core/mem/mem-heap.cpp:777 #6 0x00000000004a541b in mem_decompress_pointer (compressed_pointer=0) at jerryscript/jerry-core/mem/mem-allocator.cpp:102 #7 0x000000000041bb39 in ecma_builtin_regexp_prototype_compile (this_arg=711, pattern_arg=775, flags_arg=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:187 #8 0x000000000041b475 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=197, this_arg_value=711, arguments_list=0x81d680 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90 #9 0x000000000049cb53 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=197, this_arg_value=711, arguments_list=0x81d680 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #10 0x000000000049c23f in ecma_builtin_dispatch_call (obj_p=0x7de8b8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x7de8e8 <mem_heap+1512>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:438 #11 0x000000000044f149 in ecma_op_function_call (func_obj_p=0x7de8b8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x7de8e8 <mem_heap+1512>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:794 #12 0x00000000004325ef in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:820 #13 0x00000000004a603d in vm_loop (frame_ctx_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484 #14 0x00000000004a62d6 in vm_run_from_pos (instrs_p=0x7de7c8 <mem_heap+1224>, start_pos=1, this_binding_value=523, lex_env_p=0x7de720 <mem_heap+1056>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:575 #15 0x00000000004a5ea7 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413 #16 0x00000000004a9219 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1445 #17 0x00000000004a7bd2 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:295 ```
Assertion 'compressed_pointer != MEM_CP_NULL' failed in mem_heap_decompress_pointer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/612/comments
0
2015-09-02T18:33:38Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/612
104,544,902
612
[ "jerryscript-project", "jerryscript" ]
On Mac OS X, during `make precommit`, full testing with `run-test-pass.sh` was failed. ``` > make precommit . . . ./tools/runners/run-unittests.sh ./build/bin/unittests || \ (echo "Unit tests run failed. See ./build/bin/unittests/unit_tests_run.log for details."; exit 1;) Running ./build/bin/unittests/unit-test-api... OK Running ./build/bin/unittests/unit-test-date-helpers... OK Running ./build/bin/unittests/unit-test-heap... OK Running ./build/bin/unittests/unit-test-literal-storage... OK Running ./build/bin/unittests/unit-test-longjmp... OK Running ./build/bin/unittests/unit-test-number-to-integer... OK Running ./build/bin/unittests/unit-test-number-to-string... OK Running ./build/bin/unittests/unit-test-parser... OK Running ./build/bin/unittests/unit-test-poolman... OK Running ./build/bin/unittests/unit-test-recordset... OK Running ./build/bin/unittests/unit-test-string-to-number... OK Running ./build/bin/unittests/unit-test-strings... OK Unit tests completed successfully. Starting full testing. ./tools/runners/run-test-pass.sh: line 79: 37641 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 38571 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./build/bin/release.darwin/jerry testing failed See log in ./build/bin/release.darwin/check/0 directory for details. ./build/bin/debug.darwin/jerry testing failed See log in ./build/bin/debug.darwin/check/0 directory for details. ./tools/runners/run-test-pass.sh: line 79: 48914 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48959 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48965 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48971 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48977 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48983 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48989 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./tools/runners/run-test-pass.sh: line 79: 48995 Segmentation fault: 11 ${ENGINE} ${JERRY_ARGS} ${test} >&$JERRY_TEMP ./build/bin/release.darwin/jerry testing failed See log in ./build/bin/release.darwin/check/1 directory for details. ./build/bin/debug.darwin/jerry testing failed See log in ./build/bin/debug.darwin/check/1 directory for details. make: *** [precommit] Error 1 ``` ./build/bin/debug.darwin/check/0/jerry.error ``` 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry/math-pow.js ============================================ ============================================ ``` ./build/bin/debug.darwin/check/1/jerry.error ``` 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-010.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-011.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-012.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-013.js ============================================ ============================================ ``` ./build/bin/release.darwin/check/0/jerry.error ``` 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry/math-pow.js ============================================ ============================================ ``` ./build/bin/release.darwin/check/1/jerry.error ``` 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-010.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-011.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-012.js ============================================ ============================================ 139: /Users/sjlee/Workspace/harmony/jerryscript/./tests/jerry-test-suite/15/15.08/15.08.02/15.08.02.13/15.08.02.13-013.js ============================================ ============================================ ```
Full testing failed on Mac OS X build
https://api.github.com/repos/jerryscript-project/jerryscript/issues/610/comments
1
2015-08-31T08:37:32Z
2016-08-29T11:24:59Z
https://github.com/jerryscript-project/jerryscript/issues/610
104,010,892
610
[ "jerryscript-project", "jerryscript" ]
I can't build JerryScript on Mac OS X Mavericks (10.9.5), I get the following error : ``` ❯ make Setting up prerequisites... (log file: ./build/prerequisites/prerequisites.log) Prerequisites setup failed. See ./build/prerequisites/prerequisites.log for details. make: *** [build/prerequisites/.prerequisites] Error 1 ``` ``` ❯ cat build/prerequisites/prerequisites.log mktemp: illegal option -- - usage: mktemp [-d] [-q] [-t prefix] [-u] template ... mktemp [-d] [-q] [-u] -t prefix /stm32f3.zip: Permission denied Failed to setup 'stm32f3' prerequisite. Cannot download 'http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip' zip archive. ```
Could not build on OSX
https://api.github.com/repos/jerryscript-project/jerryscript/issues/598/comments
6
2015-08-26T09:50:57Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/598
103,226,573
598
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: ab47365 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript JSON.stringify([], [1, 1]); ``` ###### Note: The values in the array must be the same to reproduce this issue. ###### Backtrace: ``` javascript ICE: Assertion 'mem_free_chunks_number == 0' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):171. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a9023 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 #0 0x00000000004a9023 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x0000000000400847 in syscall_2 (syscall_no=62, arg1=16519, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x00000000004009e8 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000046f1f5 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000046f244 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4cbd1b "mem_free_chunks_number == 0", file=0x4cbcd8 "jerryscript/jerry-core/mem/mem-poolman.cpp", function=0x4aa0b0 <_ZZ18mem_pools_finalizevE8__func__.lto_priv.1054> "mem_pools_finalize", line=171) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x00000000004a5f07 in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:171 #6 0x00000000004a48f4 in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58 #7 0x00000000004a2cf0 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1351 #8 0x00000000004a17e3 in main (argc=3, argv=0x7fffffffdd88) at jerryscript/main-linux.cpp:299 ```
Assertion 'mem_free_chunks_number == 0' failed in mem_pools_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/590/comments
2
2015-08-18T23:35:54Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/590
101,772,982
590
[ "jerryscript-project", "jerryscript" ]
Current JerryScript supports mem_stats to print memory statistics during execution. It would be nice that JerryScript provides a way to heap statistics depending on object types. Especially, I want to measure how much heap space is occupied by iotjs native(js) functions, which is required at iotjs startup.
mem_stats classified by object types
https://api.github.com/repos/jerryscript-project/jerryscript/issues/587/comments
1
2015-08-18T01:20:27Z
2017-01-31T13:33:51Z
https://github.com/jerryscript-project/jerryscript/issues/587
101,544,643
587
[ "jerryscript-project", "jerryscript" ]
I get below error with `make precommit` on Ubuntu Linux 32bit ``` LITERALS: 0x8083514 [ 8] a : STRING 0x808351c [ 36] : EMPTY RECORD 0: meta 12 6 255 // [no 'arguments'] [no 'eval'] 1: reg_var_decl 128 130 // var tmp128 .. tmp130; 2: var_decl 0 // var a; 3: assignment 130 1 1 // tmp130 = 1: SMALLINT; 4: assignment 0 6 130 // a = tmp130 : TYPEOF(tmp130); 5: ret // ret; ICE: Assertion 'instrs_equal (instrs_p, instrs, 5)' failed at /.../harmony/jerryscript/tests/unit/test-parser.cpp(main):74. Error: ERR_FAILED_INTERNAL_ASSERTION ``` in `./build/bin/unittests/unit_tests_run.log` file. console output is ``` Running ./build/bin/unittests/unit-test-number-to-string... OK Running ./build/bin/unittests/unit-test-parser... FAILED Unit tests run failed. See ./build/bin/unittests/unit_tests_run.log for details. make[1]: *** [unittests_run] Error 1 make[1]: Leaving directory `/.../harmony/jerryscript' make: *** [precommit] Error 1 ``` 64bit is OK.
Assertion 'instrs_equal (instrs_p, instrs, 5)' failed with 32bit Linux
https://api.github.com/repos/jerryscript-project/jerryscript/issues/585/comments
0
2015-08-18T00:48:27Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/585
101,540,156
585
[ "jerryscript-project", "jerryscript" ]
Seams that issue in this line: ``` cpp JERRY_ASSERT (dest_p - character_buffer == result_string_length); ```
Cross build is broken after #574
https://api.github.com/repos/jerryscript-project/jerryscript/issues/577/comments
10
2015-08-17T12:16:11Z
2016-11-25T06:26:37Z
https://github.com/jerryscript-project/jerryscript/issues/577
101,407,562
577
[ "jerryscript-project", "jerryscript" ]
Some functions like `lit_get_magic_string_utf8()` ends with ``` JERRY_UNREACHABLE (); } ``` and does not return value. In this case without `-Wno-return-type` mips compiler fails with an `error: control reaches end of non-void function`. Should I use this option `-Wno-return-type` or should I add something like this? ``` JERRY_UNREACHABLE (); return NULL; /* make compiler happy */ } ```
error: control reaches end of non-void function
https://api.github.com/repos/jerryscript-project/jerryscript/issues/572/comments
7
2015-08-13T22:06:58Z
2015-08-28T00:19:28Z
https://github.com/jerryscript-project/jerryscript/issues/572
100,880,717
572
[ "jerryscript-project", "jerryscript" ]
The current implementation of the Date object has some performance flaws. According to this https://github.com/Samsung/jerryscript/pull/459#issuecomment-130806960 it cause pretty high performance impact during test262 running. Possible optimizations: - Use `int64_t` to represent the raw Date value - currently it is using `ecma_number_t` - Use faster algorithms to find the exact Date - look up tables where it is possible (while keeping in mind the compiled binary size) - binary search instead of linear search
Optimize Date builtin
https://api.github.com/repos/jerryscript-project/jerryscript/issues/570/comments
0
2015-08-13T19:34:14Z
2016-07-28T09:56:00Z
https://github.com/jerryscript-project/jerryscript/issues/570
100,850,074
570
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 4ee30cb Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript ({"setTime": Date.prototype.setTime}).setTime(-61); ``` ###### Backtrace: ``` javascript ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_internal_property):492. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a8b02 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a8b02 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x0000000000400847 in syscall_2 (syscall_no=62, arg1=8700, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x00000000004009e8 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000046eee1 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000046ef30 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c5eec "property_p != NULL", file=0x4c5b38 "jerryscript/jerry-core/ecma/base/ecma-helpers.cpp", function=0x4ab1c0 <_ZZ26ecma_get_internal_propertyP13ecma_object_t27ecma_internal_property_id_tE8__func__.lto_priv.905> "ecma_get_internal_property", line=492) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000484598 in ecma_get_internal_property (object_p=0x7dc360 <_ZL13mem_heap_area.lto_priv.1067+160>, property_id=ECMA_INTERNAL_PROPERTY_PRIMITIVE_NUMBER_VALUE) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492 #6 0x0000000000448ce8 in ecma_builtin_date_prototype_set_time(unsigned int, unsigned int) [clone .lto_priv.558] (this_arg=83, time=341) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.cpp:387 #7 0x00000000004513b2 in ecma_builtin_date_prototype_dispatch_routine (builtin_routine_id=168, this_arg_value=83, arguments_list=0x81c250 <_ZL13mem_heap_area.lto_priv.1067+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.inc.h:67 #8 0x000000000049c32d in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_DATE_PROTOTYPE, builtin_routine_id=168, this_arg_value=83, arguments_list=0x81c250 <_ZL13mem_heap_area.lto_priv.1067+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:145 #9 0x000000000049ba4d in ecma_builtin_dispatch_call (obj_p=0x7dc3e0 <_ZL13mem_heap_area.lto_priv.1067+288>, this_arg_value=83, arg_collection_p=0x7dc540 <_ZL13mem_heap_area.lto_priv.1067+640>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:438 #10 0x0000000000480e6b in ecma_op_function_call (func_obj_p=0x7dc3e0 <_ZL13mem_heap_area.lto_priv.1067+288>, this_arg_value=83, arg_collection_p=0x7dc540 <_ZL13mem_heap_area.lto_priv.1067+640>) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:794 #11 0x000000000045cb34 in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffd9c0) at jerryscript/jerry-core/vm/opcodes.cpp:819 #12 0x00000000004a64f8 in vm_loop (frame_ctx_p=0x7fffffffd9c0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484 #13 0x00000000004a6785 in vm_run_from_pos (instrs_p=0x7dc458 <_ZL13mem_heap_area.lto_priv.1067+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7dc2f8 <_ZL13mem_heap_area.lto_priv.1067+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:574 #14 0x00000000004a6362 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413 #15 0x00000000004a2a49 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1445 #16 0x00000000004a1402 in main (argc=3, argv=0x7fffffffdd88) at jerryscript/main-linux.cpp:295 ```
Assertion 'property_p != NULL' failed in ecma_get_internal_property
https://api.github.com/repos/jerryscript-project/jerryscript/issues/566/comments
1
2015-08-13T09:04:11Z
2016-11-25T06:26:36Z
https://github.com/jerryscript-project/jerryscript/issues/566
100,720,190
566
[ "jerryscript-project", "jerryscript" ]
Currently we fail to parse RegExp literals in some places, where they should be allowed. For example ``` if (true) /abc/.exec("abc"); if (true) {} /abc/.exec("abc"); var a /abc/.exec("abc"); ``` should all be valid.
Correctly parse RegExp literals in places where they should be allowed.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/563/comments
1
2015-08-12T09:29:45Z
2015-10-22T11:07:36Z
https://github.com/jerryscript-project/jerryscript/issues/563
100,503,660
563
[ "jerryscript-project", "jerryscript" ]
Although S15.5.4.11_A5_T1.js has a bad error message (backslashes should be doubled), it passes on other JS engines because they accept octal escape sequences. E.g: "\1" === "\u0001" "\11" === "\u0009" However, they fail on Jerry with ERROR: Ln *, Col *: Illegal escape sequence. I think we should fix this.
Octal escape sequences in string literals.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/561/comments
0
2015-08-11T08:50:20Z
2016-02-24T08:45:52Z
https://github.com/jerryscript-project/jerryscript/issues/561
100,260,994
561
[ "jerryscript-project", "jerryscript" ]
According to the standard ([15.5.5](http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.5)) the `String` object has an enumerable set of properties with the index names. You can try it with the following test: ``` str = new String("abc"); str[5] = 'ef'; for ( c in str ) { print(c, str[c]); } print(str); ``` Expected output: ``` 0 a 1 b 2 c 5 ef abc ``` Actual output: ``` 5 ef abc ``` This cause test262 test fail: 15.2.3/15.2.3.4/15.2.3.4-4-44.js
The ecma_get_property_list doesn't handle the String index properties
https://api.github.com/repos/jerryscript-project/jerryscript/issues/560/comments
1
2015-08-11T08:11:42Z
2016-11-25T06:26:36Z
https://github.com/jerryscript-project/jerryscript/issues/560
100,253,477
560
[ "jerryscript-project", "jerryscript" ]
Patch #536 causes some performance degradation on sunspider-0.9.1/math-partial-sums.js (instable, as before one of rebases degradation appeared also on sunspider-0.9.1/bitops-bitwise-and.js). Cause of the performance degradation and its instability should be investigated.
Investigate performance degradation on PR #536
https://api.github.com/repos/jerryscript-project/jerryscript/issues/555/comments
1
2015-08-10T17:50:54Z
2016-02-12T11:56:58Z
https://github.com/jerryscript-project/jerryscript/issues/555
100,128,445
555
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 58851bc Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript JSON.stringify([], [ 'foo', 'foo' ]); ``` ###### Note: Although the assertion and the backtrace look similar to the issue will be fixed by #542 but this problem seems unrelated to that one. ###### Backtrace: ``` javascript ICE: Assertion 'mem_pools == NULL' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):89. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a8443 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a8443 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x0000000000400847 in syscall_2 (syscall_no=62, arg1=8145, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x00000000004009e8 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000483ac5 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000483b14 in jerry_assert_fail (assertion=0x4cb3f3 "mem_pools == NULL", file=0x4cb3b0 "jerryscript/jerry-core/mem/mem-poolman.cpp", function=0x4a9450 <_ZZ18mem_pools_finalizevE8__func__.lto_priv.1071> "mem_pools_finalize", line=89) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x00000000004a5827 in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:89 #6 0x00000000004a4265 in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58 #7 0x00000000004a2661 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1269 #8 0x00000000004a137b in main (argc=3, argv=0x7fffffffdd08) at jerryscript/main-linux.cpp:299 ```
Assertion 'mem_pools == NULL' failed in mem_pools_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/551/comments
2
2015-08-10T09:03:43Z
2015-08-19T06:41:03Z
https://github.com/jerryscript-project/jerryscript/issues/551
100,013,902
551
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: ff580ca Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Description: Running the test below gets quite slow. The first cca. 100 concatenations take about 1 sec each but later on this rises to several seconds. Finishing the test required about 15 minutes. ###### Test case: ``` javascript var v_0 = [ 0.1, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 8.1, 9.1, 10.1, 11.1, 12.1, 13.1, 14.1, 15.1, 16.1, 17.1, 18.1, 19.1, 20.1, 21.1, 22.1, 23.1, 24.1, 25.1, 26.1, 27.1, 28.1, 29.1, 30.1, 31.1, 32.1, 33.1, 34.1, 35.1, 36.1, 37.1, 38.1, 39.1, 40.1, 41.1, 42.1, 43.1, 44.1, 45.1, 46.1, 47.1, 48.1, 49.1, 50.1, 51.1, 52.1, 53.1, 54.1, 55.1, 56.1, 57.1, 58.1, 59.1, 60.1, 61.1, 62.1, 63.1, 64.1, 65.1, 66.1, 67.1, 68.1, 69.1, 70.1, 71.1, 72.1, 73.1, 74.1, 75.1, 76.1, 77.1, 78.1, 79.1, 80.1, 81.1, 82.1, 83.1, 84.1, 85.1, 86.1, 87.1, 88.1, 89.1, 90.1, 91.1, 92.1, 93.1, 94.1, 95.1, 96.1, 97.1, 98.1, 99.1, 100.1, 101.1, 102.1, 103.1, 104.1, 105.1, 106.1, 107.1, 108.1, 109.1, 110.1, 111.1, 112.1, 113.1, 114.1, 115.1, 116.1, 117.1, 118.1, 119.1, 120.1, 121.1, 122.1, 123.1, 124.1, 125.1, 126.1, 127.1, 128.1, 129.1, 130.1, 131.1, 132.1, 133.1, 134.1, 135.1, 136.1, 137.1, 138.1, 139.1, 140.1, 141.1, 142.1, 143.1, 144.1, 145.1, 146.1, 147.1, 148.1, 149.1, 150.1, 151.1, 152.1, 153.1, 154.1, 155.1, 156.1, 157.1, 158.1, 159.1, 160.1, 161.1, 162.1, 163.1, 164.1, 165.1, 166.1, 167.1, 168.1, 169.1, 170.1, 171.1, 172.1, 173.1, 174.1, 175.1, 176.1, 177.1, 178.1, 179.1, 180.1, 181.1, 182.1, 183.1, 184.1, 185.1, 186.1, 187.1, 188.1, 189.1, 190.1, 191.1, 192.1, 193.1, 194.1, 195.1, 196.1, 197.1, 198.1, 199.1, 200.1, 201.1, 202.1, 203.1, 204.1, 205.1, 206.1, 207.1, 208.1, 209.1, 210.1, 211.1, 212.1, 213.1, 214.1, 215.1, 216.1, 217.1, 218.1, 219.1, 220.1, 221.1, 222.1, 223.1, 224.1, 225.1, 226.1, 227.1, 228.1, 229.1, 230.1, 231.1, 232.1, 233.1, 234.1, 235.1, 236.1, 237.1, 238.1, 239.1, 240.1, 241.1, 242.1, 243.1, 244.1, 245.1, 246.1, 247.1, 248.1, 249.1, 250.1, 251.1, 252.1, 253.1, 254.1, 255.1, 256.1, 257.1, 258.1, 259.1, 260.1, 261.1, 262.1, 263.1, 264.1, 265.1, 266.1, 267.1, 268.1, 269.1, 270.1, 271.1, 272.1, 273.1, 274.1, 275.1, 276.1, 277.1, 278.1, 279.1, 280.1, 281.1, 282.1, 283.1, 284.1, 285.1, 286.1, 287.1, 288.1, 289.1, 290.1, 291.1, 292.1, 293.1, 294.1, 295.1, 296.1, 297.1, 298.1, 299.1, 300.1, 301.1, 302.1, 303.1, 304.1, 305.1, 306.1, 307.1, 308.1, 309.1, 310.1, 311.1, 312.1, 313.1, 314.1, 315.1, 316.1, 317.1, 318.1, 319.1, 320.1, 321.1, 322.1, 323.1, 324.1, 325.1, 326.1, 327.1, 328.1, 329.1, 330.1, 331.1, 332.1, 333.1, 334.1, 335.1, 336.1, 337.1, 338.1, 339.1, 340.1, 341.1, 342.1, 343.1, 344.1, 345.1, 346.1, 347.1, 348.1, 349.1, 350.1, 351.1, 352.1, 353.1, 354.1, 355.1, 356.1, 357.1, 358.1, 359.1, 360.1, 361.1, 362.1, 363.1, 364.1, 365.1, 366.1, 367.1, 368.1, 369.1, 370.1, 371.1, 372.1, 373.1, 374.1, 375.1, 376.1, 377.1, 378.1, 379.1, 380.1, 381.1, 382.1, 383.1, 384.1, 385.1, 386.1, 387.1, 388.1, 389.1, 390.1, 391.1, 392.1, 393.1, 394.1, 395.1, 396.1, 397.1, 398.1, 399.1, 400.1, 401.1, 402.1, 403.1, 404.1, 405.1, 406.1, 407.1, 408.1, 409.1, 410.1, 411.1, 412.1, 413.1, 414.1, 415.1, 416.1, 417.1, 418.1, 419.1, 420.1, 421.1, 422.1, 423.1, 424.1, 425.1, 426.1, 427.1, 428.1, 429.1, 430.1, 431.1, 432.1, 433.1, 434.1, 435.1, 436.1, 437.1, 438.1, 439.1, 440.1, 441.1, 442.1, 443.1, 444.1, 445.1, 446.1, 447.1, 448.1, 449.1, 450.1, 451.1, 452.1, 453.1, 454.1, 455.1, 456.1, 457.1, 458.1, 459.1, 460.1, 461.1, 462.1, 463.1, 464.1, 465.1, 466.1, 467.1, 468.1, 469.1, 470.1, 471.1, 472.1, 473.1, 474.1, 475.1, 476.1, 477.1, 478.1, 479.1, 480.1, 481.1, 482.1, 483.1, 484.1, 485.1, 486.1, 487.1, 488.1, 489.1, 490.1, 491.1, 492.1, 493.1, 494.1, 495.1, 496.1, 497.1, 498.1, 499.1, 500.1, 501.1, 502.1, 503.1, 504.1, 505.1, 506.1, 507.1, 508.1, 509.1, 510.1, 511.1 ]; var result = ""; for (var i in v_0) { print(i); result += v_0[i]; } ```
String concatenation gets quite slow when concating several float values
https://api.github.com/repos/jerryscript-project/jerryscript/issues/548/comments
1
2015-08-07T13:16:15Z
2016-11-25T06:26:36Z
https://github.com/jerryscript-project/jerryscript/issues/548
99,645,295
548
[ "jerryscript-project", "jerryscript" ]
The [ESP8266 by Espressif-Systems](http://espressif.com/en/products/esp8266/) is currently the (by far) cheapest System-on-chip for IoT-purposes with around 40k of available RAM and usually >500kB of flash-memory. With [nodeMCU](http://www.nodemcu.com/) there already exists a firmware that sports a LUA-Interpreter so I would really love to see a JS-interpreter doing the same. Is this possible at all, and is there any available Documentation on the steps needed to make jerryscript run on this Hardware?
Is there any plan to support the ESP8266?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/546/comments
18
2015-08-07T08:45:19Z
2016-11-25T06:26:36Z
https://github.com/jerryscript-project/jerryscript/issues/546
99,607,401
546
[ "jerryscript-project", "jerryscript" ]
Why isn't JerryScript based on existing minimal open source ECMAScript engines: [Espruino](https://github.com/espruino/Espruino) or [Duktape](https://github.com/svaarala/duktape) (#494)? Is it a NIH syndrome which makes you reinvent the wheel? Or is JerryScript superior to them? Thanks!
JerryScript based on Espruino or Duktape?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/544/comments
3
2015-08-06T19:18:42Z
2015-12-11T10:56:59Z
https://github.com/jerryscript-project/jerryscript/issues/544
99,506,092
544
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 5888401 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript new RegExp("m\u2820"); parseInt("145"); ``` ###### Backtrace: ``` javascript ICE: Assertion '(byte & LIT_UTF8_EXTRA_BYTE_MASK) != LIT_UTF8_EXTRA_BYTE_MARKER' failed at jerryscript/jerry-core/lit/lit-strings.cpp(lit_utf8_iterator_seek):240. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a6cea in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a6cea in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=25391, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000043c358 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000043c3a7 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4c9dd0 "(byte & LIT_UTF8_EXTRA_BYTE_MASK) != LIT_UTF8_EXTRA_BYTE_MARKER", file=0x4c9d20 "jerryscript/jerry-core/lit/lit-strings.cpp", function=0x4a7030 <_ZZ22lit_utf8_iterator_seekP19lit_utf8_iterator_t23lit_utf8_iterator_pos_tE8__func__.lto_priv.1142> "lit_utf8_iterator_seek", line=240) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x00000000004a25cf in lit_utf8_iterator_seek (iter_p=0x7fffffffd1d0, iter_pos=...) at jerryscript/jerry-core/lit/lit-strings.cpp:240 #6 0x0000000000493986 in ecma_builtin_global_object_parse_int(unsigned int, unsigned int, unsigned int) [clone .lto_priv.1034] (this_arg=4, string=318, radix=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:356 #7 0x000000000049c2c2 in ecma_builtin_global_dispatch_routine (builtin_routine_id=48, this_arg_value=4, arguments_list=0x81a290 <_ZL13mem_heap_area.lto_priv.1099+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h:236 #8 0x000000000049b15e in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_GLOBAL, builtin_routine_id=48, this_arg_value=4, arguments_list=0x81a290 <_ZL13mem_heap_area.lto_priv.1099+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:312 #9 0x000000000049a560 in ecma_builtin_dispatch_call (obj_p=0x7da3e0 <_ZL13mem_heap_area.lto_priv.1099+224>, this_arg_value=4, arguments_list_p=0x81a290 <_ZL13mem_heap_area.lto_priv.1099+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #10 0x0000000000450dbb in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) ( func_obj_p=0x7da3e0 <_ZL13mem_heap_area.lto_priv.1099+224>, this_arg_value=4, arguments_list_p=0x81a290 <_ZL13mem_heap_area.lto_priv.1099+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:788 #11 0x000000000043121d in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffd540) at jerryscript/jerry-core/vm/opcodes.cpp:854 #12 0x00000000004a5bac in vm_loop (frame_ctx_p=0x7fffffffd540, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484 #13 0x00000000004a5e39 in vm_run_from_pos (instrs_p=0x7da498 <_ZL13mem_heap_area.lto_priv.1099+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7da338 <_ZL13mem_heap_area.lto_priv.1099+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:574 #14 0x00000000004a5a16 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413 #15 0x00000000004a20fd in jerry_run () at jerryscript/jerry-core/jerry.cpp:1363 #16 0x00000000004a0cdd in main (argc=3, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:295 ```
Assertion '(byte & LIT_UTF8_EXTRA_BYTE_MASK) != LIT_UTF8_EXTRA_BYTE_MARKER' failed in lit_utf8_iterator_seek
https://api.github.com/repos/jerryscript-project/jerryscript/issues/541/comments
1
2015-08-06T11:33:30Z
2015-11-19T11:09:42Z
https://github.com/jerryscript-project/jerryscript/issues/541
99,415,625
541
[ "jerryscript-project", "jerryscript" ]
"GC start threshold" adjustment heuristics should be investigated to reduce number of those GC invocations that are most likely unnecessary. See also: https://github.com/Samsung/jerryscript/pull/534#issue-99234304
Investigate possible ways to improve "GC start threshold" adjustment heuristics
https://api.github.com/repos/jerryscript-project/jerryscript/issues/535/comments
1
2015-08-05T15:43:54Z
2015-11-19T12:11:30Z
https://github.com/jerryscript-project/jerryscript/issues/535
99,235,282
535
[ "jerryscript-project", "jerryscript" ]
Related discussion: [#513 (comment)](https://github.com/Samsung/jerryscript/pull/513#issuecomment-127973747)
Function.prototype.bind: incorrect behaviour of ecma_gc_mark()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/531/comments
1
2015-08-05T14:52:45Z
2015-09-16T13:12:08Z
https://github.com/jerryscript-project/jerryscript/issues/531
99,222,929
531
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 24c16da Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Number.prototype.toString = []; Number.prototype.valueOf = {}; JSON.stringify([], [ new Number(2.2) ]); ``` ###### Backtrace: ``` javascript ICE: Assertion 'ret_value == ecma_make_empty_completion_value ()' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp(ecma_builtin_json_stringify):1166. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a6cc7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a6cc7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=1056, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000043ba24 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000043ba73 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4c0fc8 "ret_value == ecma_make_empty_completion_value ()", file=0x4c13f0 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp", function=0x4aa390 <_ZZL27ecma_builtin_json_stringifyjjjjE8__func__.lto_priv.812> "ecma_builtin_json_stringify", line=1166) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000479921 in ecma_builtin_json_stringify (this_arg=375, arg1=419, arg2=439, arg3=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1164 #6 0x00000000004773ab in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=375, arguments_list=0x81ab90 <_ZL13mem_heap_area.lto_priv.1103+262032>, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47 #7 0x000000000049ae43 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=375, arguments_list=0x81ab90 <_ZL13mem_heap_area.lto_priv.1103+262032>, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135 #8 0x000000000049a444 in ecma_builtin_dispatch_call (obj_p=0x7daf10 <_ZL13mem_heap_area.lto_priv.1103+784>, this_arg_value=375, arguments_list_p=0x81ab90 <_ZL13mem_heap_area.lto_priv.1103+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #9 0x00000000004508ae in ecma_op_function_call (func_obj_p=0x7daf10 <_ZL13mem_heap_area.lto_priv.1103+784>, this_arg_value=375, arguments_list_p=0x81ab90 <_ZL13mem_heap_area.lto_priv.1103+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:788 #10 0x0000000000431d8a in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffd550) at jerryscript/jerry-core/vm/opcodes.cpp:842 #11 0x00000000004a399d in vm_loop (frame_ctx_p=0x7fffffffd550, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484 #12 0x00000000004a3c2a in vm_run_from_pos (instrs_p=0x7dad98 <_ZL13mem_heap_area.lto_priv.1103+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7dac38 <_ZL13mem_heap_area.lto_priv.1103+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:574 #13 0x00000000004a3807 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413 #14 0x00000000004a602c in jerry_run () at jerryscript/jerry-core/jerry.cpp:1363 #15 0x00000000004a4c0c in main (argc=3, argv=0x7fffffffd918) at jerryscript/main-linux.cpp:295 ```
Assertion 'ret_value == ecma_make_empty_completion_value ()' failed in ecma_builtin_json_stringify
https://api.github.com/repos/jerryscript-project/jerryscript/issues/526/comments
1
2015-08-05T10:29:19Z
2015-08-17T08:09:32Z
https://github.com/jerryscript-project/jerryscript/issues/526
99,174,578
526
[ "jerryscript-project", "jerryscript" ]
Hi, Im trying to build this for Edison and I couldn't proceed,as it some point needs 'tk' which need xlib. Jerryscript needs vera++ and vera++ needs tk. I dont think xlib would be available on edison image any time. Is there a plan on how to go about this?
Dependency on tk
https://api.github.com/repos/jerryscript-project/jerryscript/issues/516/comments
2
2015-08-04T08:39:41Z
2015-11-19T12:11:39Z
https://github.com/jerryscript-project/jerryscript/issues/516
98,918,916
516
[ "jerryscript-project", "jerryscript" ]
Similar functionality is implemented in three functions, create and use a common helper function.
Rearrange String.prototype.indexOf, lastIndexOf and Replace helpers
https://api.github.com/repos/jerryscript-project/jerryscript/issues/515/comments
1
2015-08-04T08:15:36Z
2015-11-27T13:32:04Z
https://github.com/jerryscript-project/jerryscript/issues/515
98,913,983
515
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: b5923cc Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Number.prototype.toString.bind('foo'); ``` ###### Backtrace: ``` javascript ICE: Assertion 'mem_pools == NULL' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):89. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a5f34 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a5f34 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=5916, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x00000000004416ca in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000441719 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c944c "mem_pools == NULL", file=0x4c9410 "jerryscript/jerry-core/mem/mem-poolman.cpp", function=0x4a67f0 <_ZZ18mem_pools_finalizevE8__func__.lto_priv.1045> "mem_pools_finalize", line=89) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x00000000004a2ddf in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:89 #6 0x00000000004a2b54 in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58 #7 0x00000000004a5540 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1269 #8 0x00000000004a425a in main (argc=3, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:299 ```
Assertion 'mem_pools == NULL' failed in mem_pools_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/511/comments
1
2015-08-03T08:31:22Z
2016-11-25T06:26:35Z
https://github.com/jerryscript-project/jerryscript/issues/511
98,696,672
511
[ "jerryscript-project", "jerryscript" ]
We should throw a RangeError if the time value is nan or infinity.
Add throwing of missing range error to Date.prototype.toISOString()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/501/comments
3
2015-07-30T14:14:56Z
2015-08-07T16:36:54Z
https://github.com/jerryscript-project/jerryscript/issues/501
98,180,286
501
[ "jerryscript-project", "jerryscript" ]
Looks like there is a chance that JerryScript miss captured variable when closure are made with eval. See this example: ``` e = {}; eval('(function (e) { var v1 = { a: 2 }; function b(e) { e.a = function() { print(v1.a); }; } b(e); })')(e); e.a(); ``` I'm not sure about what is the expected result according to ECMA, but V8 print the value '2'. JerryScript does not.
Lost captured variable with eval.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/497/comments
2
2015-07-30T10:55:38Z
2015-09-07T11:14:47Z
https://github.com/jerryscript-project/jerryscript/issues/497
98,140,449
497
[ "jerryscript-project", "jerryscript" ]
Test case: ``` var myObj = function(val){ this.value = val; this.valueOf = function(){throw "valueOf-"+this.value;}; this.toString = function(){throw "toString-"+this.value;}; }; d = new Date(new myObj(1), new myObj(2)); ```
Assertion 'mem_pools == NULL' failed in the Date constructor.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/495/comments
1
2015-07-30T10:25:28Z
2015-08-03T08:22:04Z
https://github.com/jerryscript-project/jerryscript/issues/495
98,135,302
495
[ "jerryscript-project", "jerryscript" ]
Hi, can somebody please explain differences between JerryScript and Duktape (http://duktape.org/) project which is already used by many projects, notably AllJoyn, and why do we have to duplicate the work (in case that differences are not significant)? BR, Drasko
Differences comparing to Duktape
https://api.github.com/repos/jerryscript-project/jerryscript/issues/494/comments
3
2015-07-29T23:43:22Z
2015-12-11T08:16:27Z
https://github.com/jerryscript-project/jerryscript/issues/494
98,052,118
494
[ "jerryscript-project", "jerryscript" ]
/usr/bin/cc cq librelease.jerry-libc.linux.lib.a CMakeFiles/release.jerry-libc.linux.lib.dir/jerry-libc-fatals.c.o CMakeFiles/release.jerry-libc.linux.lib.dir/jerry-libc-pr intf.c.o CMakeFiles/release.jerry-libc.linux.lib.dir/jerry-libc.c.o CMakeFiles/release.jerry-libc.linux.lib.dir/target/linux/jerry-libc-target.c.o CMakeFiles/release.jerry-l ibc.linux.lib.dir/target/linux/jerry-asm.S.o gcc: error: cq: No such file or directory gcc: error: librelease.jerry-libc.linux.lib.a: No such file or directory
build error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/489/comments
5
2015-07-29T06:46:19Z
2016-07-28T09:47:48Z
https://github.com/jerryscript-project/jerryscript/issues/489
97,872,523
489
[ "jerryscript-project", "jerryscript" ]
Currently the [[Construct]] call of Date() returns with an object instead of a string.
Fix [[Construct]] call for Date()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/477/comments
1
2015-07-27T14:38:49Z
2015-08-03T08:21:04Z
https://github.com/jerryscript-project/jerryscript/issues/477
97,478,743
477
[ "jerryscript-project", "jerryscript" ]
Greetings! It's awesome Samsung is getting into the open source spirit. I checked out http://samsung.github.io/jerryscript/ and found it hard to read as many of the sentences have misspellings and grammatical mistakes. Running the text through the grammatical checker in Pages or Word should catch most of them.
Numerous Grammatical Mistakes on the Website
https://api.github.com/repos/jerryscript-project/jerryscript/issues/475/comments
1
2015-07-27T13:22:12Z
2016-04-20T12:46:09Z
https://github.com/jerryscript-project/jerryscript/issues/475
97,461,918
475
[ "jerryscript-project", "jerryscript" ]
There are some bugs in the date constructor. The following cases produce wrong Date objects: This should be invalid but it is valid: ``` d = new Date(8.64e+15 + 1); ``` The first one should be valid while the second one should be invalid: ``` d = new Date("275760-09-13T00:00:00.000"); d = new Date("275760-09-13T00:00:00.001"); ``` This should be valid: ``` d = new Date("300-09-13T00:00:00.000"); ```
Fix issues in the Date constructor
https://api.github.com/repos/jerryscript-project/jerryscript/issues/473/comments
3
2015-07-27T08:35:08Z
2015-07-29T13:24:53Z
https://github.com/jerryscript-project/jerryscript/issues/473
97,412,540
473
[ "jerryscript-project", "jerryscript" ]
Some parameters (like "[${CMAKE_BINARY_DIR}/generated.h](https://github.com/Samsung/jerryscript/blob/bc0ca7be5d1081e8a1115b870237f8d3f19b32d9/CMakeLists.txt#L92)") are passed to CMake commands in your build scripts without enclosing them by quotation marks. I see that these places will result in build difficulties if the contents of the used variables will contain special characters like semicolons. I would recommend to apply [advices from a wiki article](http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.).
Complete quoting for parameters of some CMake commands
https://api.github.com/repos/jerryscript-project/jerryscript/issues/472/comments
1
2015-07-26T08:01:37Z
2016-07-28T09:47:32Z
https://github.com/jerryscript-project/jerryscript/issues/472
97,296,067
472
[ "jerryscript-project", "jerryscript" ]
Hi folks, We'd like to use the following C++ features in our code base: - class - single inheritance - _reduce source code size_ - copy / move constructors - _improve perf._ - _much simplifies GC related logic_ - virtual functions (very limited, advisable usage) - _reduce cross-module dependencies_ - constexpr - _improve perf, reduce code size_ - static_assert - _quality_ - static_cast (already used), reinterpret_cast - _quality_ - try/catch (only for ECMA exception handling, instead of completion_value) - _performance, simplifies code_ - enum classes (desirable: replace all enums with enum classes) - _quality (type safety)_ - assignment operator implementation (very limited usage) - _simplifies code_ - may be, other operators, for example, to replace ecma_number_add with simple '+') - explicitly instantiated templates (very limited, advisable usage, controlled with -fno-implicit-templates) - _reduce source code size_ What do you think about this?
C++
https://api.github.com/repos/jerryscript-project/jerryscript/issues/470/comments
9
2015-07-24T18:08:14Z
2016-11-25T06:26:35Z
https://github.com/jerryscript-project/jerryscript/issues/470
97,105,909
470
[ "jerryscript-project", "jerryscript" ]
Add missing ECMA standard references in `re-parser.cpp`.
Add missing ECMA standard references in RegExp parser.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/469/comments
0
2015-07-24T13:34:11Z
2016-11-25T06:26:35Z
https://github.com/jerryscript-project/jerryscript/issues/469
97,054,163
469
[ "jerryscript-project", "jerryscript" ]
Related discussion: https://github.com/Samsung/jerryscript/pull/448#discussion_r35415567
Optimize character classes compilation in RegExp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/468/comments
0
2015-07-24T13:29:47Z
2016-07-28T09:46:46Z
https://github.com/jerryscript-project/jerryscript/issues/468
97,053,431
468
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 021fc62 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript "use strict"; var my_ var eval = eval; ``` ###### Backtrace: ``` javascript ICE: Assertion '!is_check_failed' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(do_strict_eval_arguments_check):51. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=22521, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044102f in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000044107e in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c2de9 "!is_check_failed", file=0x4c2d68 "jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp", function=0x4a33d0 <_ZZL30do_strict_eval_arguments_checkP13ecma_object_tP13ecma_string_tbE8__func__.lto_priv.1020> "do_strict_eval_arguments_check", line=51) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000049aabb in do_strict_eval_arguments_check (ref_base_lex_env_p=0x7d4bf8 <_ZL13mem_heap_area.lto_priv.1048+56>, var_name_string_p=0x7fffffffd360, is_strict=true) at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:51 #6 0x000000000049ae13 in set_variable_value (frame_ctx_p=0x7fffffffd500, lit_oc=4, var_idx=2 '\002', value=103) at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:171 #7 0x000000000043e166 in opfunc_assignment (opdata=..., frame_ctx_p=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes.cpp:125 #8 0x00000000004a0209 in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #9 0x0000000000498ea8 in vm_run_from_pos (opcodes_p=0x7d4d58 <_ZL13mem_heap_area.lto_priv.1048+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d4bf8 <_ZL13mem_heap_area.lto_priv.1048+56>, is_strict=true, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #10 0x00000000004a0073 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:399 #11 0x00000000004a1e0a in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #12 0x00000000004a09b5 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:294 ```
Assertion '!is_check_failed' failed in do_strict_eval_arguments_check
https://api.github.com/repos/jerryscript-project/jerryscript/issues/466/comments
1
2015-07-24T11:12:38Z
2015-11-19T11:10:42Z
https://github.com/jerryscript-project/jerryscript/issues/466
97,029,321
466
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 021fc62 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0 = /[\0]C/; ``` ###### Backtrace: ``` javascript Program received signal SIGSEGV, Segmentation fault. 0x000000000040a0eb in re_parse_char_class (parser_ctx_p=0x7fffffffd2b0, append_char_class=0x4087e3 <re_append_char_class(void*, uint32_t, uint32_t)>, re_ctx_p=0x7fffffffd270, out_token_p=0x7fffffffd290) at jerryscript/jerry-core/parser/regexp/re-parser.cpp:429 429 || lit_char_is_decimal_digit (RE_LOOKUP (*pattern_p, 1))) (gdb) bt #0 0x000000000040a0eb in re_parse_char_class (parser_ctx_p=0x7fffffffd2b0, append_char_class=0x4087e3 <re_append_char_class(void*, uint32_t, uint32_t)>, re_ctx_p=0x7fffffffd270, out_token_p=0x7fffffffd290) at jerryscript/jerry-core/parser/regexp/re-parser.cpp:429 #1 0x0000000000409139 in re_parse_alternative (re_ctx_p=0x7fffffffd270, expect_eof=true) at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:567 #2 0x00000000004093f2 in re_compile_bytecode (bytecode_p=0x7d4dd8 <_ZL13mem_heap_area.lto_priv.1048+536>, pattern_str_p=0x7d4c78 <_ZL13mem_heap_area.lto_priv.1048+184>, flags=0 '\000') at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:667 #3 0x0000000000417cff in ecma_op_create_regexp_object (pattern_p=0x7d4c78 <_ZL13mem_heap_area.lto_priv.1048+184>, flags_str_p=0x0) at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:222 #4 0x000000000043e5c2 in opfunc_assignment (opdata=..., frame_ctx_p=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:207 #5 0x00000000004a0209 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #6 0x0000000000498ea8 in vm_run_from_pos (opcodes_p=0x7d4d58 <_ZL13mem_heap_area.lto_priv.1048+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d4bf8 <_ZL13mem_heap_area.lto_priv.1048+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #7 0x00000000004a0073 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:399 #8 0x00000000004a1e0a in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #9 0x00000000004a09b5 in main (argc=2, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:294 ```
Segmentation fault in re_parse_char_class
https://api.github.com/repos/jerryscript-project/jerryscript/issues/465/comments
2
2015-07-24T11:04:18Z
2016-11-25T06:26:35Z
https://github.com/jerryscript-project/jerryscript/issues/465
97,027,961
465
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 021fc62 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript '\n' /./.exec("񉞍"); ``` The content of exec in hex: F1 89 9E 8D ###### Backtrace: ``` javascript ICE: Assertion 'lit_is_utf8_string_valid (string_p, string_size)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_new_ecma_string_from_utf8):416. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=21746, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044102f in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000044107e in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4b9ba0 "lit_is_utf8_string_valid (string_p, string_size)", file=0x4b9958 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp", function=0x4a66b0 <_ZZ30ecma_new_ecma_string_from_utf8PKhjE8__func__.lto_priv.721> "ecma_new_ecma_string_from_utf8", line=416) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000045f53e in ecma_new_ecma_string_from_utf8 (string_p=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968> "\361\211\236\215", string_size=1) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:416 #6 0x000000000041a382 in ecma_regexp_exec_helper (obj_p=0x7d4c88 <_ZL13mem_heap_area.lto_priv.1048+200>, bc_p=0x8149dc <_ZL13mem_heap_area.lto_priv.1048+261660> "\r\001", str_p=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968> "\361\211\236\215", str_size=4) at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:1326 #7 0x000000000041eaf9 in ecma_builtin_regexp_prototype_exec (this_arg=103, arg=290) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:89 #8 0x000000000041e85b in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=195, this_arg_value=103, arguments_list=0x814b50 <_ZL13mem_heap_area.lto_priv.1048+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:43 #9 0x0000000000491e77 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=195, this_arg_value=103, arguments_list=0x814b50 <_ZL13mem_heap_area.lto_priv.1048+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163 #10 0x000000000049142a in ecma_builtin_dispatch_call (obj_p=0x7d4cf8 <_ZL13mem_heap_area.lto_priv.1048+312>, this_arg_value=103, arguments_list_p=0x814b50 <_ZL13mem_heap_area.lto_priv.1048+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #11 0x000000000044dcef in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) ( func_obj_p=0x7d4cf8 <_ZL13mem_heap_area.lto_priv.1048+312>, this_arg_value=103, arguments_list_p=0x814b50 <_ZL13mem_heap_area.lto_priv.1048+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #12 0x000000000043450e in opfunc_call_n (opdata=..., frame_ctx_p=0x7fffffffd4f0) at jerryscript/jerry-core/vm/opcodes.cpp:866 #13 0x00000000004a0209 in vm_loop (int_data_p=0x7fffffffd4f0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #14 0x0000000000498ea8 in vm_run_from_pos (opcodes_p=0x7d4d58 <_ZL13mem_heap_area.lto_priv.1048+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d4bf8 <_ZL13mem_heap_area.lto_priv.1048+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #15 0x00000000004a0073 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:399 #16 0x00000000004a1e0a in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #17 0x00000000004a09b5 in main (argc=3, argv=0x7fffffffd8b8) at jerryscript/main-linux.cpp:294 ```
Assertion 'lit_is_utf8_string_valid (string_p, string_size)' failed in ecma_new_ecma_string_from_utf8
https://api.github.com/repos/jerryscript-project/jerryscript/issues/464/comments
3
2015-07-24T10:43:13Z
2015-11-19T12:01:31Z
https://github.com/jerryscript-project/jerryscript/issues/464
97,024,402
464
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 021fc62 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0, v_1, v_2, v_3, v_4, v_5, v_6, v_7, v_8, v_9, v_10, v_11, v_12, v_13, v_14, v_15, v_16, v_17, v_18, v_19, v_20, v_21, v_22, v_23, v_24, v_25, v26, v_27, v_28, v_29; function f_0() { JSON.stringify(this); } function f_1() {} function f_2() {} function f_3() {} function f_4() {} function f_5() {} function f_6() {} function f_7() {} f_0(); ``` ###### Backtrace: ``` javascript ICE: Assertion 'mem_heap.allocated_bytes >= bytes' failed at jerryscript/jerry-core/mem/mem-heap.cpp(mem_heap_free_block):788. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a26b2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=14163, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044102f in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x000000000044107e in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c4ca8 "mem_heap.allocated_bytes >= bytes", file=0x4c46b0 "jerryscript/jerry-core/mem/mem-heap.cpp", function=0x4a2e50 <_ZZ19mem_heap_free_blockPvE8__func__.lto_priv.1056> "mem_heap_free_block", line=788) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000049f084 in mem_heap_free_block (ptr=0x8149d0 <_ZL13mem_heap_area.lto_priv.1048+261648>) at jerryscript/jerry-core/mem/mem-heap.cpp:788 #6 0x00000000004171b9 in free_list (ctx_p=0x7fffffffced8) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-json.cpp:169 #7 0x0000000000478774 in ecma_builtin_json_stringify (this_arg=1495, arg1=23, arg2=4, arg3=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1193 #8 0x000000000047602b in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=1495, arguments_list=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47 #9 0x0000000000491e29 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=1495, arguments_list=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135 #10 0x000000000049142a in ecma_builtin_dispatch_call (obj_p=0x7d5790 <_ZL13mem_heap_area.lto_priv.1048+3024>, this_arg_value=1495, arguments_list_p=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #11 0x000000000044dcef in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) ( func_obj_p=0x7d5790 <_ZL13mem_heap_area.lto_priv.1048+3024>, this_arg_value=1495, arguments_list_p=0x814b10 <_ZL13mem_heap_area.lto_priv.1048+261968>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #12 0x000000000043450e in opfunc_call_n (opdata=..., frame_ctx_p=0x7fffffffd2c0) at jerryscript/jerry-core/vm/opcodes.cpp:866 #13 0x00000000004a0209 in vm_loop (int_data_p=0x7fffffffd2c0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #14 0x0000000000498ea8 in vm_run_from_pos (opcodes_p=0x7d4fd8 <_ZL13mem_heap_area.lto_priv.1048+1048>, start_pos=35, this_binding_value=23, lex_env_p=0x7d5738 <_ZL13mem_heap_area.lto_priv.1048+2936>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #15 0x000000000044dc62 in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) ( func_obj_p=0x7d5338 <_ZL13mem_heap_area.lto_priv.1048+1912>, this_arg_value=4, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:765 #16 0x000000000043450e in opfunc_call_n (opdata=..., frame_ctx_p=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:866 #17 0x00000000004a0209 in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #18 0x0000000000498ea8 in vm_run_from_pos (opcodes_p=0x7d4fd8 <_ZL13mem_heap_area.lto_priv.1048+1048>, start_pos=1, this_binding_value=23, lex_env_p=0x7d4bf8 <_ZL13mem_heap_area.lto_priv.1048+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #19 0x00000000004a0073 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:399 #20 0x00000000004a1e0a in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #21 0x00000000004a09b5 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:294 ```
Assertion 'mem_heap.allocated_bytes >= bytes' failed in mem_heap_free_block
https://api.github.com/repos/jerryscript-project/jerryscript/issues/463/comments
4
2015-07-24T10:35:50Z
2015-08-07T14:10:14Z
https://github.com/jerryscript-project/jerryscript/issues/463
97,023,351
463
[ "jerryscript-project", "jerryscript" ]
All printing methods of the Date object use UTC time however some of them should use LOCAL time.
Support local time output for the printer methods of the Date object.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/460/comments
2
2015-07-23T13:31:00Z
2015-08-07T16:38:40Z
https://github.com/jerryscript-project/jerryscript/issues/460
96,814,991
460
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 63083b3 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript try { var v_0 = [ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ]; } catch(e) {} ``` ###### Backtrace: ``` javascript ICE: Assertion '(!ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos == try_end_oc)' failed at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp(opfunc_try_block):43. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a1b77 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a1b77 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=12506, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000440bd6 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000440c25 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4c21a0 "(!ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos == try_end_oc)", file=0x4c2150 "jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp", function=0x4a28f0 <_ZZ16opfunc_try_block8opcode_tP14vm_frame_ctx_tE8__func__.lto_priv.1033> "opfunc_try_block", line=43) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000049a41b in opfunc_try_block (opdata=..., frame_ctx_p=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:42 #6 0x000000000049f6ce in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:470 #7 0x000000000049836d in vm_run_from_pos (opcodes_p=0x7d3d58 <_ZL13mem_heap_area.lto_priv.1064+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d3bf8 <_ZL13mem_heap_area.lto_priv.1064+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:560 #8 0x000000000049f538 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:399 #9 0x00000000004a12cf in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #10 0x000000000049fe7a in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:294 ```
Assertion '(!ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && frame_ctx_p->pos == try_end_oc)' failed in opfunc_try_block
https://api.github.com/repos/jerryscript-project/jerryscript/issues/453/comments
1
2015-07-22T19:07:38Z
2015-11-19T11:12:42Z
https://github.com/jerryscript-project/jerryscript/issues/453
96,641,768
453
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7c16228 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript for (v_0 in v_1) {}; f_0(v_2.v_3 === 5); ``` ###### Backtrace: ``` javascript ICE: Assertion 'lit_cp.packed_value != MEM_CP_NULL' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(get_variable_value):95. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=6489, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x00000000004405e6 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000440635 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c1420 "lit_cp.packed_value != MEM_CP_NULL", file=0x4c1360 "jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp", function=0x4a1f70 <_ZZ18get_variable_valueP10int_data_thbE8__func__.lto_priv.1031> "get_variable_value", line=95) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x00000000004984a7 in get_variable_value (int_data=0x7fffffffd500, var_idx=0 '\000', do_eval_or_arguments_check=false) at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:95 #6 0x000000000049363b in opfunc_for_in (opdata=..., int_data_p=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes-for-in.cpp:198 #7 0x000000000049e10a in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #8 0x000000000049e397 in vm_run_from_pos (opcodes_p=0x7d3d98 <_ZL13mem_heap_area.lto_priv.1061+472>, start_pos=1, this_binding_value=23, lex_env_p=0x7d3bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #9 0x000000000049df74 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #10 0x00000000004a05fd in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #11 0x000000000049f1a8 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:294 ```
Assertion 'lit_cp.packed_value != MEM_CP_NULL' failed in get_variable_value
https://api.github.com/repos/jerryscript-project/jerryscript/issues/447/comments
2
2015-07-22T10:11:30Z
2016-02-08T09:21:29Z
https://github.com/jerryscript-project/jerryscript/issues/447
96,528,086
447
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7c16228 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0 - []; v_0 instanceof assert; ``` ###### Backtrace: ``` javascript ICE: Assertion 'ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION' failed at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp(ecma_op_function_has_instance):657. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=11357, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x00000000004405e6 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000440635 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4b4cf8 "ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION", file=0x4b4b88 "jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp", function=0x4a6a30 <_ZZ29ecma_op_function_has_instanceP13ecma_object_tjE8__func__.lto_priv.568> "ecma_op_function_has_instance", line=657) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000044c47d in ecma_op_function_has_instance (func_obj_p=0x7d3c10 <_ZL13mem_heap_area.lto_priv.1061+80>, value=4) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:657 #6 0x0000000000459c59 in ecma_op_object_has_instance (obj_p=0x7d3c10 <_ZL13mem_heap_area.lto_priv.1061+80>, value=4) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:482 #7 0x0000000000436452 in opfunc_instanceof (opdata=..., int_data=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes-ecma-relational.cpp:254 #8 0x000000000049e10a in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #9 0x000000000049e397 in vm_run_from_pos (opcodes_p=0x7d3d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d3bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #10 0x000000000049df74 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #11 0x00000000004a05fd in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #12 0x000000000049f1a8 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:294 ```
Assertion 'ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_BOUND_FUNCTION' failed in ecma_op_function_has_instance
https://api.github.com/repos/jerryscript-project/jerryscript/issues/446/comments
1
2015-07-22T08:55:27Z
2015-11-19T11:14:22Z
https://github.com/jerryscript-project/jerryscript/issues/446
96,513,441
446
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7c16228 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0 = Number var v_1 = new v_0("1e73") v_1.toString(35); ``` ###### Backtrace: ``` javascript ICE: Assertion 'buff_index <= buff_size' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp(ecma_builtin_number_prototype_object_to_string):303. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a1235 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=27152, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x00000000004405e6 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000440635 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4bdb00 "buff_index <= buff_size", file=0x4bda68 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp", function=0x4a3ae0 <_ZZL46ecma_builtin_number_prototype_object_to_stringjPKjjE8__func__.lto_priv.861> "ecma_builtin_number_prototype_object_to_string", line=303) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000483991 in ecma_builtin_number_prototype_object_to_string(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.857] ( this_arg=147, arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp:303 #6 0x0000000000482cac in ecma_builtin_number_prototype_dispatch_routine (builtin_routine_id=103, this_arg_value=147, arguments_list=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.inc.h:47 #7 0x000000000049670c in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_NUMBER_PROTOTYPE, builtin_routine_id=103, this_arg_value=147, arguments_list=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:91 #8 0x0000000000495d8f in ecma_builtin_dispatch_call (obj_p=0x7d3e18 <_ZL13mem_heap_area.lto_priv.1061+600>, this_arg_value=147, arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #9 0x000000000044c91b in ecma_op_function_call (func_obj_p=0x7d3e18 <_ZL13mem_heap_area.lto_priv.1061+600>, this_arg_value=147, arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #10 0x000000000043d1d6 in opfunc_call_n (opdata=..., int_data=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes.cpp:866 #11 0x000000000049e10a in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #12 0x000000000049e397 in vm_run_from_pos (opcodes_p=0x7d3d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d3bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #13 0x000000000049df74 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #14 0x00000000004a05fd in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #15 0x000000000049f1a8 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:294 ```
Assertion 'buff_index <= buff_size' failed in ecma_builtin_number_prototype_object_to_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/445/comments
2
2015-07-22T08:50:55Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/445
96,512,205
445
[ "jerryscript-project", "jerryscript" ]
The following test can reproduce the problem: ``` (function () { var d = {}; var a = [arguments]; })(); ``` This now throws `ReferenceError`. It also makes 29 test262 tests to fail.
Regression after #397 has been landed
https://api.github.com/repos/jerryscript-project/jerryscript/issues/440/comments
6
2015-07-21T12:29:00Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/440
96,304,392
440
[ "jerryscript-project", "jerryscript" ]
`jerry_api_string_to_char_buffer()` was designed to return negation of required bytes for buffer when given buffer is not sufficient. This function can take `NULL` for buffer to calculate required bytes to allocate buffer for a string. But if the string is actually empty string ('') then this will result segmentation fault. ``` ssize_t ret_val = ecma_string_to_utf8_string (string_p, (lit_utf8_byte_t *) buffer_p, buffer_size); if (ret_val >= 0) { buffer_p[ret_val] = 0; ret_val++; } else { ret_val--; } ``` here, `ecma_string_to_utf8_string` returns `0`, next if statement hold, and then seg fault.
Segmentation fault at `jerry_api_string_to_char_buffer()` for empty string.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/439/comments
5
2015-07-21T06:48:25Z
2015-11-19T12:12:20Z
https://github.com/jerryscript-project/jerryscript/issues/439
96,242,805
439
[ "jerryscript-project", "jerryscript" ]
Test case: ``` var obj = {"a": [1], "b": {}}; JSON.stringify (obj); ```
Segmentation fault in JSON.stringify()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/432/comments
3
2015-07-20T08:19:56Z
2015-08-03T08:21:42Z
https://github.com/jerryscript-project/jerryscript/issues/432
96,013,116
432
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6038173 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript var v_0 = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255 ]; ``` ###### Backtrace: ``` javascript ICE: Assertion 'ecma_is_completion_value_throw (completion) || ecma_is_completion_value_return (completion)' failed at jerryscript/jerry-core/vm/vm.cpp(vm_run_from_pos):559. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=12843, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044059a in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004405e9 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4c2ff8 "ecma_is_completion_value_throw (completion) || ecma_is_completion_value_return (completion)", file=0x4c2de0 "jerryscript/jerry-core/vm/vm.cpp", function=0x4a1600 <_ZZ15vm_run_from_posPK8opcode_ttjP13ecma_object_tbbE8__func__.lto_priv.1049> "vm_run_from_pos", line=559) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000049dc60 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1058+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1058+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:558 #6 0x000000000049d7e6 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #7 0x000000000049fe6f in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #8 0x000000000049ea1a in main (argc=3, argv=0x7fffffffd8d8) at jerryscript/main-linux.cpp:294 ```
Assertion 'ecma_is_completion_value_throw (completion) || ecma_is_completion_value_return (completion)' failed in vm_run_from_pos
https://api.github.com/repos/jerryscript-project/jerryscript/issues/429/comments
3
2015-07-17T13:12:51Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/429
95,654,228
429
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6038173 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript parseInt(''); ``` ###### Backtrace: ``` javascript Program received signal SIGSEGV, Segmentation fault. 0x000000000048dba2 in ecma_builtin_global_object_parse_int (this_arg=4, string=118, radix=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:121 121 utf8_string_buff[str_size] = LIT_BYTE_NULL; (gdb) bt #0 0x000000000048dba2 in ecma_builtin_global_object_parse_int (this_arg=4, string=118, radix=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:121 #1 0x000000000048d9a2 in ecma_builtin_global_dispatch_routine (builtin_routine_id=48, this_arg_value=4, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h:232 #2 0x00000000004961ff in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_GLOBAL, builtin_routine_id=48, this_arg_value=4, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:312 #3 0x0000000000495601 in ecma_builtin_dispatch_call (obj_p=0x7d2c70 <_ZL13mem_heap_area.lto_priv.1058+176>, this_arg_value=4, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #4 0x000000000044c8cf in ecma_op_function_call (func_obj_p=0x7d2c70 <_ZL13mem_heap_area.lto_priv.1058+176>, this_arg_value=4, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #5 0x000000000043d28a in opfunc_call_n (opdata=..., int_data=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:866 #6 0x000000000049d97c in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #7 0x000000000049dc09 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1058+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1058+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #8 0x000000000049d7e6 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #9 0x000000000049fe6f in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #10 0x000000000049ea1a in main (argc=2, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:294 ```
Segmentation fault in ecma_builtin_global_object_parse_int
https://api.github.com/repos/jerryscript-project/jerryscript/issues/428/comments
2
2015-07-17T13:01:07Z
2015-07-24T13:22:01Z
https://github.com/jerryscript-project/jerryscript/issues/428
95,652,222
428
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6038173 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript String.prototype.trim.call('\uf389'); ``` ###### Backtrace: ``` javascript ICE: Assertion '!lit_utf8_iterator_is_eos (&iter)' failed at jerryscript/jerry-core/lit/lit-strings.cpp(lit_utf8_string_code_unit_at):640. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=5522, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044059a in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004405e9 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c1290 "!lit_utf8_iterator_is_eos (&iter)", file=0x4c11b0 "jerryscript/jerry-core/lit/lit-strings.cpp", function=0x4a0fb0 <_ZZ28lit_utf8_string_code_unit_atPKhjjE8__func__.lto_priv.1089> "lit_utf8_string_code_unit_at", line=640) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000049a656 in lit_utf8_string_code_unit_at (utf8_buf_p=0x812b10 <_ZL13mem_heap_area.lto_priv.1058+261968> "\357\216\211", utf8_buf_size=3, code_unit_offset=1) at jerryscript/jerry-core/lit/lit-strings.cpp:640 #6 0x0000000000481c03 in ecma_builtin_string_prototype_object_trim (this_arg=306) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp:815 #7 0x000000000047fd60 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=140, this_arg_value=306, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:79 #8 0x0000000000495f16 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=140, this_arg_value=306, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55 #9 0x0000000000495601 in ecma_builtin_dispatch_call (obj_p=0x7d2cd8 <_ZL13mem_heap_area.lto_priv.1058+280>, this_arg_value=306, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #10 0x000000000044c8cf in ecma_op_function_call (func_obj_p=0x7d2cd8 <_ZL13mem_heap_area.lto_priv.1058+280>, this_arg_value=306, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #11 0x0000000000487dee in ecma_builtin_function_prototype_object_call (this_arg=143, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp:210 #12 0x00000000004876f6 in ecma_builtin_function_prototype_dispatch_routine (builtin_routine_id=193, this_arg_value=143, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.inc.h:63 #13 0x0000000000495fb2 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE, builtin_routine_id=193, this_arg_value=143, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:108 #14 0x0000000000495601 in ecma_builtin_dispatch_call (obj_p=0x7d2df0 <_ZL13mem_heap_area.lto_priv.1058+560>, this_arg_value=143, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #15 0x000000000044c8cf in ecma_op_function_call (func_obj_p=0x7d2df0 <_ZL13mem_heap_area.lto_priv.1058+560>, this_arg_value=143, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #16 0x000000000043d28a in opfunc_call_n (opdata=..., int_data=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:866 #17 0x000000000049d97c in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #18 0x000000000049dc09 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1058+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1058+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #19 0x000000000049d7e6 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #20 0x000000000049fe6f in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #21 0x000000000049ea1a in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:294 ```
Assertion '!lit_utf8_iterator_is_eos (&iter)' failed in lit_utf8_string_code_unit_at
https://api.github.com/repos/jerryscript-project/jerryscript/issues/426/comments
1
2015-07-17T08:33:58Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/426
95,613,250
426
[ "jerryscript-project", "jerryscript" ]
Hello. Currently, implementation of JSON built-in uses isalpha and isdigit functions. Instead, helpers from lit_char should be used. After the replacement is performed, `isalpha` and `isdigit` functions should be removed.
Remove usage of isalpha and isdigit from JSON built-in's implementation
https://api.github.com/repos/jerryscript-project/jerryscript/issues/424/comments
3
2015-07-16T17:12:08Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/424
95,481,636
424
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: b414329 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript new Date(2013, -1); ``` ###### Backtrace: ``` javascript ICE: Assertion 'ecma_date_month_from_time (time) == mn' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp(ecma_date_make_day):737. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a0ac9 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a0ac9 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=18955, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x000000000044059a in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004405e9 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4baf98 "ecma_date_month_from_time (time) == mn", file=0x4bae38 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp", function=0x4a3e90 <_ZZ18ecma_date_make_daydddE8__func__.lto_priv.807> "ecma_date_make_day", line=737) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000475b0b in ecma_date_make_day (year=2013, month=-1, date=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp:737 #6 0x0000000000421f69 in ecma_date_construct_helper (args=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, args_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp:165 #7 0x0000000000422f73 in ecma_builtin_date_dispatch_construct(unsigned int const*, unsigned int) ( arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp:541 #8 0x0000000000495cb2 in ecma_builtin_dispatch_construct (obj_p=0x7d2c70 <_ZL13mem_heap_area.lto_priv.1061+176>, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153 #9 0x000000000044ce57 in ecma_op_function_construct (func_obj_p=0x7d2c70 <_ZL13mem_heap_area.lto_priv.1061+176>, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:959 #10 0x000000000043d661 in opfunc_construct_n (opdata=..., int_data=0x7fffffffd510) at jerryscript/jerry-core/vm/opcodes.cpp:957 #11 0x000000000049d9a3 in vm_loop (int_data_p=0x7fffffffd510, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #12 0x000000000049dc30 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #13 0x000000000049d80d in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #14 0x000000000049fe96 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #15 0x000000000049ea41 in main (argc=3, argv=0x7fffffffd8d8) at jerryscript/main-linux.cpp:294 ```
Assertion 'ecma_date_month_from_time (time) == mn' failed in ecma_date_make_day
https://api.github.com/repos/jerryscript-project/jerryscript/issues/420/comments
3
2015-07-16T13:34:27Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/420
95,434,236
420
[ "jerryscript-project", "jerryscript" ]
Implement Date.prototype.toISOString()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/417/comments
1
2015-07-16T11:17:46Z
2015-07-23T09:25:53Z
https://github.com/jerryscript-project/jerryscript/issues/417
95,411,366
417
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: abc2b55 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Math.max(Number.POSITIVE_INFINITY, 234); ``` ###### Backtrace: ``` javascript ICE: Assertion 'ecma_number_is_negative (ret_num)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.cpp(ecma_builtin_math_object_max):367. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004ab0d7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004ab0d7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=1176, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000444144 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x0000000000444193 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4b9850 "ecma_number_is_negative (ret_num)", file=0x4b9730 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.cpp", function=0x4b2dd0 <_ZZL28ecma_builtin_math_object_maxjPKjjE8__func__.lto_priv.388> "ecma_builtin_math_object_max", line=367) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x000000000041ec4f in ecma_builtin_math_object_max(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.427] (this_arg=5159, args=0x81fb50 <_ZL13mem_heap_area.lto_priv.1140+262032>, args_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.cpp:367 #6 0x0000000000428f04 in ecma_builtin_math_dispatch_routine (builtin_routine_id=93, this_arg_value=5159, arguments_list=0x81fb50 <_ZL13mem_heap_area.lto_priv.1140+262032>, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.inc.h:114 #7 0x0000000000497e21 in ecma_builtin_dispatch_routine(ecma_builtin_id_t, unsigned short, unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.1098] (builtin_object_id=ECMA_BUILTIN_ID_MATH, builtin_routine_id=93, this_arg_value=5159, arguments_list=0x81fb50 <_ZL13mem_heap_area.lto_priv.1140+262032>, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:125 #8 0x00000000004a094f in ecma_builtin_dispatch_call (obj_p=0x7e2740 <_ZL13mem_heap_area.lto_priv.1140+11136>, this_arg_value=5159, arguments_list_p=0x81fb50 <_ZL13mem_heap_area.lto_priv.1140+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:419 #9 0x0000000000450fcc in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) (func_obj_p=0x7e2740 <_ZL13mem_heap_area.lto_priv.1140+11136>, this_arg_value=5159, arguments_list_p=0x81fb50 <_ZL13mem_heap_area.lto_priv.1140+262032>, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #10 0x0000000000441908 in opfunc_call_n (opdata=..., int_data=0x7fffffffdb90) at jerryscript/jerry-core/vm/opcodes.cpp:866 #11 0x00000000004aacb5 in vm_loop (int_data_p=0x7fffffffdb90, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #12 0x00000000004aaf42 in vm_run_from_pos (opcodes_p=0x7e2cd8 <_ZL13mem_heap_area.lto_priv.1140+12568>, start_pos=1, this_binding_value=835, lex_env_p=0x7e2bc8 <_ZL13mem_heap_area.lto_priv.1140+12296>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #13 0x00000000004aab1f in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #14 0x00000000004a69c1 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #15 0x00000000004a556c in main (argc=3, argv=0x7fffffffdf58) at jerryscript/main-linux.cpp:294 ```
Assertion 'ecma_number_is_negative (ret_num)' failed in ecma_builtin_math_object_max
https://api.github.com/repos/jerryscript-project/jerryscript/issues/414/comments
2
2015-07-15T22:21:55Z
2015-07-24T15:50:15Z
https://github.com/jerryscript-project/jerryscript/issues/414
95,303,182
414
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: abc2b55 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Date.prototype.setUTCMinutes(); ``` ###### Backtrace: ``` javascript Program received signal SIGSEGV, Segmentation fault. 0x000000000048fd22 in ecma_builtin_date_prototype_set_utc_minutes(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.1041] (this_arg=2823, args=0x0, args_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.cpp:730 730 ECMA_OP_TO_NUMBER_TRY_CATCH (m, args[0], ret_value); (gdb) bt #0 0x000000000048fd22 in ecma_builtin_date_prototype_set_utc_minutes(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.1041] (this_arg=2823, args=0x0, args_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.cpp:730 #1 0x0000000000495dfd in ecma_builtin_date_prototype_dispatch_routine (builtin_routine_id=174, this_arg_value=2823, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.inc.h:73 #2 0x0000000000497e55 in ecma_builtin_dispatch_routine(ecma_builtin_id_t, unsigned short, unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.1098] (builtin_object_id=ECMA_BUILTIN_ID_DATE_PROTOTYPE, builtin_routine_id=174, this_arg_value=2823, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:145 #3 0x00000000004a094f in ecma_builtin_dispatch_call (obj_p=0x7e1960 <_ZL13mem_heap_area.lto_priv.1140+7584>, this_arg_value=2823, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:419 #4 0x0000000000450fcc in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) (func_obj_p=0x7e1960 <_ZL13mem_heap_area.lto_priv.1140+7584>, this_arg_value=2823, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #5 0x0000000000441908 in opfunc_call_n (opdata=..., int_data=0x7fffffffdbb0) at jerryscript/jerry-core/vm/opcodes.cpp:866 #6 0x00000000004aacb5 in vm_loop (int_data_p=0x7fffffffdbb0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #7 0x00000000004aaf42 in vm_run_from_pos (opcodes_p=0x7e2cd8 <_ZL13mem_heap_area.lto_priv.1140+12568>, start_pos=1, this_binding_value=835, lex_env_p=0x7e2bc8 <_ZL13mem_heap_area.lto_priv.1140+12296>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #8 0x00000000004aab1f in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #9 0x00000000004a69c1 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #10 0x00000000004a556c in main (argc=2, argv=0x7fffffffdf78) at jerryscript/main-linux.cpp:294 ```
Segmentation fault in ecma_builtin_date_prototype_set_utc_minutes
https://api.github.com/repos/jerryscript-project/jerryscript/issues/413/comments
1
2015-07-15T20:20:42Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/413
95,281,434
413
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: abc2b55 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Description: Calling JSON.stringify with a not too big (length > 38) array ends in an out of memory error. ###### Test case: ``` javascript var a = ["a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a"]; print(JSON.stringify(a)); // a.length: 39 ```
Out of memory error with JSON.stringify
https://api.github.com/repos/jerryscript-project/jerryscript/issues/411/comments
4
2015-07-15T19:15:33Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/411
95,269,154
411
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: abc2b55 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript Date(Number.POSITIVE_INFINITY).toString(); ``` ###### Backtrace: ``` javascript ICE: Assertion 'day_within_year >= 0 && day_within_year < 365 + in_leap_year' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp(ecma_date_month_from_time):269. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a0a9e in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a0a9e in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=31760, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000440580 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004405cf in jerry_assert_fail(char const*, char const*, char const*, unsigned int) ( assertion=0x4bae78 "day_within_year >= 0 && day_within_year < 365 + in_leap_year", file=0x4bae18 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp", function=0x4a3e50 <_ZZ25ecma_date_month_from_timedE8__func__.lto_priv.809> "ecma_date_month_from_time", line=269) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000474bf7 in ecma_date_month_from_time (time=inf) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp:269 #6 0x00000000004750ca in ecma_date_date_from_time (time=inf) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp:345 #7 0x0000000000489233 in ecma_builtin_date_prototype_to_string(unsigned int) [clone .lto_priv.1000] (this_arg=275) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.cpp:145 #8 0x0000000000491abb in ecma_builtin_date_prototype_dispatch_routine (builtin_routine_id=103, this_arg_value=275, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.inc.h:42 #9 0x0000000000496016 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_DATE_PROTOTYPE, builtin_routine_id=103, this_arg_value=275, arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:145 #10 0x00000000004955fd in ecma_builtin_dispatch_call (obj_p=0x7d2e00 <_ZL13mem_heap_area.lto_priv.1061+576>, this_arg_value=275, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #11 0x000000000044c89f in ecma_op_function_call (func_obj_p=0x7d2e00 <_ZL13mem_heap_area.lto_priv.1061+576>, this_arg_value=275, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #12 0x000000000043d276 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:866 #13 0x000000000049d978 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #14 0x000000000049dc05 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #15 0x000000000049d7e2 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #16 0x000000000049fe6b in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #17 0x000000000049ea16 in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:294 ```
Assertion 'day_within_year >= 0 && day_within_year < 365 + in_leap_year' failed in ecma_date_month_from_time
https://api.github.com/repos/jerryscript-project/jerryscript/issues/410/comments
0
2015-07-15T18:23:21Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/410
95,258,907
410
[ "jerryscript-project", "jerryscript" ]
When building all targets, make stops with: ``` /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/bin/ld: debug.mcu_stm32f4-cp section `.text' will not fit in region `FLASH' /usr/lib/gcc/arm-none-eabi/4.8.2/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 1804 bytes collect2: error: ld returned 1 exit status make[5]: *** [debug.mcu_stm32f4-cp] Error 1 ``` git rev-parse --short master: abc2b55 OS: Ubuntu 14.04.1 LTS uname -srm: Linux 3.13.0-44-generic x86_64 arm-none-eabi-gcc --version: arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2
Region FLASH overflow for debug.mcu_stm32f4-cp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/407/comments
0
2015-07-15T16:33:26Z
2016-11-25T06:26:34Z
https://github.com/jerryscript-project/jerryscript/issues/407
95,236,331
407
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: abc2b55 Build: debug.linux ``` ###### OS: ``` Ubuntu 15.04, x86_64 ``` ###### Test case: ``` javascript JSON.stringify('\u2028') ``` ###### Backtrace: ``` javascript ICE: Assertion 'bytes_copied > 0 || !string_len' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp(ecma_builtin_json_quote):1137. Error: ERR_FAILED_INTERNAL_ASSERTION Program received signal SIGABRT, Aborted. 0x00000000004a0a9e in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 32 SYSCALL_2 (gdb) bt #0 0x00000000004a0a9e in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32 #1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=27033, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96 #2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175 #3 0x0000000000440580 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65 #4 0x00000000004405cf in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4bb680 "bytes_copied > 0 || !string_len", file=0x4bb108 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp", function=0x4a4010 <_ZZL23ecma_builtin_json_quoteP13ecma_string_tE8__func__.lto_priv.798> "ecma_builtin_json_quote", line=1137) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92 #5 0x0000000000478a8e in ecma_builtin_json_quote(ecma_string_t*) [clone .lto_priv.796] (string_p=0x7d2cd0 <_ZL13mem_heap_area.lto_priv.1061+272>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1137 #6 0x000000000047964b in ecma_builtin_json_str(ecma_string_t*, ecma_object_t*, stringify_context_t*) [clone .lto_priv.795] ( key_p=0x7d2cf0 <_ZL13mem_heap_area.lto_priv.1061+304>, holder_p=0x7d2ce8 <_ZL13mem_heap_area.lto_priv.1061+296>, context_p=0x7fffffffd100) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1396 #7 0x00000000004788d1 in ecma_builtin_json_stringify (this_arg=95, arg1=138, arg2=4, arg3=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1092 #8 0x0000000000476461 in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=95, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47 #9 0x0000000000495ffc in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=95, arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135 #10 0x00000000004955fd in ecma_builtin_dispatch_call (obj_p=0x7d2ca0 <_ZL13mem_heap_area.lto_priv.1061+224>, this_arg_value=95, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414 #11 0x000000000044c89f in ecma_op_function_call (func_obj_p=0x7d2ca0 <_ZL13mem_heap_area.lto_priv.1061+224>, this_arg_value=95, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787 #12 0x000000000043d276 in opfunc_call_n (opdata=..., int_data=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes.cpp:866 #13 0x000000000049d978 in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466 #14 0x000000000049dc05 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23, lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556 #15 0x000000000049d7e2 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395 #16 0x000000000049fe6b in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375 #17 0x000000000049ea16 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:294 ```
Assertion 'bytes_copied > 0 || !string_len' failed in ecma_builtin_json_quote
https://api.github.com/repos/jerryscript-project/jerryscript/issues/406/comments
2
2015-07-15T16:11:12Z
2016-11-25T06:26:33Z
https://github.com/jerryscript-project/jerryscript/issues/406
95,231,845
406
[ "jerryscript-project", "jerryscript" ]
Hello. Implementation of `parseInt` (ecma-builtin-global.cpp) should be updated to use UTF-8 iterators for processing characters buffer. Comment of @zherczeg in #394: > Is this correct? If I understand correctly, we just pass a byte, rather than an uint16_t character. I think we should rewrite this to use the UTF iterators, since there are line terminators and white spaces outside of the [0-127] byte range.
Unicode support in implementation of parseInt
https://api.github.com/repos/jerryscript-project/jerryscript/issues/405/comments
1
2015-07-15T14:09:59Z
2015-07-30T11:59:27Z
https://github.com/jerryscript-project/jerryscript/issues/405
95,204,471
405
[ "jerryscript-project", "jerryscript" ]
If the 'space' (formatting) parameter is negative, the JSON format is wrong.
Fix undeflow in JSON.stringify()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/403/comments
2
2015-07-15T12:33:16Z
2015-07-15T16:38:08Z
https://github.com/jerryscript-project/jerryscript/issues/403
95,181,223
403
[ "jerryscript-project", "jerryscript" ]
The \b character isn't handled in the parse property of the JSON.
Missing case for backspace control character in JSON.parse()
https://api.github.com/repos/jerryscript-project/jerryscript/issues/402/comments
1
2015-07-15T10:41:30Z
2015-08-03T08:21:28Z
https://github.com/jerryscript-project/jerryscript/issues/402
95,161,142
402
[ "jerryscript-project", "jerryscript" ]
Related discussion: https://github.com/Samsung/jerryscript/pull/366#discussion_r34459554
Remove recursion depth check from RegExp engine.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/388/comments
0
2015-07-14T11:00:17Z
2015-08-06T08:50:45Z
https://github.com/jerryscript-project/jerryscript/issues/388
94,920,256
388