issue_owner_repo
listlengths
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" ]
Add windows support for Jerryscript
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2285/comments
2
2018-04-17T07:38:02Z
2018-04-26T22:28:06Z
https://github.com/jerryscript-project/jerryscript/issues/2285
314,940,135
2,285
[ "jerryscript-project", "jerryscript" ]
I want to use jerryscript in iOS and Android, can I use jerryscript through referencing the source code?
Using jerryscript in Mobile Devices
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2284/comments
4
2018-04-17T05:44:27Z
2018-04-19T07:35:50Z
https://github.com/jerryscript-project/jerryscript/issues/2284
314,913,394
2,284
[ "jerryscript-project", "jerryscript" ]
Add native ffi support in jerryscript.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2283/comments
9
2018-04-16T13:57:01Z
2019-05-06T11:25:21Z
https://github.com/jerryscript-project/jerryscript/issues/2283
314,662,663
2,283
[ "jerryscript-project", "jerryscript" ]
```javascript // Code console.log(Date.now(), new Date().getTime()) // Result 1523002147782.884 1523002147782.886 // Expected 1523002147782 1523002147782 ```
Date.now() and new Date().getTime() returns fractions
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2272/comments
1
2018-04-06T08:11:52Z
2018-04-09T11:27:16Z
https://github.com/jerryscript-project/jerryscript/issues/2272
311,884,662
2,272
[ "jerryscript-project", "jerryscript" ]
This [Travis build](https://travis-ci.org/jerryscript-project/jerryscript/jobs/361777717) failed for me while trying to download the Zephyr SDK. I wonder if you're seeing that a lot? I used to have that problem in ZJS but I solved it with Travis caching in this [pull request](https://github.com/intel/zephyr.js/commit/c...
Suggest caching Zephyr SDK for Travis speed / success improvement
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2268/comments
3
2018-04-03T20:45:06Z
2019-01-12T11:21:50Z
https://github.com/jerryscript-project/jerryscript/issues/2268
310,992,130
2,268
[ "jerryscript-project", "jerryscript" ]
I realize this is not a JerryScript specific question, but I was wondering what people's approaches are towards dealing with strings from JS when they have a `\u0000` unicode code point(s) in them. This ends up being encoded as a `0x00` byte, which happens to be the "terminator" of a C string as well. I can imagine ...
Question: dealing with \u0000 in strings from jerry_string_to_utf8_char_buffer / jerry_string_to_char_buffer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2263/comments
1
2018-04-03T08:49:23Z
2020-05-26T13:56:22Z
https://github.com/jerryscript-project/jerryscript/issues/2263
310,746,859
2,263
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 79289714 Build command: ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --system-allocator=on --linke...
stack-overflow in ecma_builtin_json_array
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2258/comments
2
2018-03-28T09:12:05Z
2019-01-16T08:35:25Z
https://github.com/jerryscript-project/jerryscript/issues/2258
309,282,202
2,258
[ "jerryscript-project", "jerryscript" ]
I would like to nominate Robert Sipka to become a JerryScript reviewer. I trust him to follow our process. He has already nearly 60 informal reviews: #2250 Improve jerry_is_feature_enabled with object availability information #2245 Move the sleep function to jerry-port #2243 Add json parse and stringify function t...
Nominating Robert Sipka (robertsipka) to become a reviewer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2254/comments
6
2018-03-27T09:23:21Z
2018-04-04T14:39:56Z
https://github.com/jerryscript-project/jerryscript/issues/2254
308,888,362
2,254
[ "jerryscript-project", "jerryscript" ]
The following is some sample code which I hope helps demonstrates the problem. ``` typedef struct { jerry_value_t val; } FooBar; static void free_ctx_cb(void *native_p) { FooBar *ctx = (FooBar *) native_p; jerry_release_value(ctx->val); free(ctx); } static const jerry_object_native_info_t native_i...
Garbage collection doesn't free values released during garbage collection (via native pointers)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2253/comments
10
2018-03-26T14:43:43Z
2020-06-12T13:51:30Z
https://github.com/jerryscript-project/jerryscript/issues/2253
308,602,625
2,253
[ "jerryscript-project", "jerryscript" ]
(Sorry about my bad english) Hello I build JerryScript with CodeBlocks for Windows and Linux and Raspberry PI 32/ 64-bit With support for double "-d" and float "-f" so the resulting libs are: JerryScript-32-f.dll, JerryScript-32-d.dll, JerryScript-64-f.dll, JerryScript-64-d.dll libJerryScript-32-f.so, libJerryScri...
float vs double
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2251/comments
4
2018-03-24T08:52:46Z
2018-11-06T11:21:14Z
https://github.com/jerryscript-project/jerryscript/issues/2251
308,241,047
2,251
[ "jerryscript-project", "jerryscript" ]
fn_expr = function NaN(a){ 'use strict'; NaN(0); } fn_expr(1); ==1318==ERROR: AddressSanitizer: stack-overflow on address 0xff769fec (pc 0xf7ab9c45 bp 0xf7b0f000 sp 0xff769fe0 T0) #0 0xf7ab9c44 (/usr/lib32/libasan.so.2+0xb0c44) #1 0xf7ab9757 (/usr/lib32/libasan.so.2+0xb0757) #2 0xf7a246d2 ...
stack-overflow(recursion)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2238/comments
3
2018-03-11T05:54:56Z
2019-10-16T15:02:35Z
https://github.com/jerryscript-project/jerryscript/issues/2238
304,133,091
2,238
[ "jerryscript-project", "jerryscript" ]
(new RegExp("[\\u0020")).exec("u"); ================================================================= ==30634==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf600075f at pc 0x080ff179 bp 0xffe3dc58 sp 0xffe3dc48 READ of size 1 at 0xf600075f thread T0 #0 0x80ff178 in lit_read_code_unit_from_utf8 /h...
heap-buffer-overflow in lit_read_code_unit_from_utf8
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2237/comments
7
2018-03-08T07:44:13Z
2018-05-28T08:13:19Z
https://github.com/jerryscript-project/jerryscript/issues/2237
303,385,238
2,237
[ "jerryscript-project", "jerryscript" ]
Remove this old function, and use the regular get magic string.
Remove ecma_get_length_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2231/comments
0
2018-03-01T12:24:44Z
2018-03-05T14:17:32Z
https://github.com/jerryscript-project/jerryscript/issues/2231
301,385,653
2,231
[ "jerryscript-project", "jerryscript" ]
((new RegExp("[\\u0")).exec("u")); gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 build command: python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --jerry-libc=off --static-link=off --lto=off --error...
heap-buffer-overflow in lit_read_code_unit_from_hex
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2230/comments
6
2018-03-01T06:28:57Z
2018-05-28T08:13:19Z
https://github.com/jerryscript-project/jerryscript/issues/2230
301,292,164
2,230
[ "jerryscript-project", "jerryscript" ]
The current debugger only works on Linux's BSD socket, I am trying to get the debugger to work on Zephyr since it recently added BSD socket support. However, it has slightly different headers for using the socket library and also it currently only supports a subset of the API. It would be nice if we can decouple all ...
Add debugger support with other platforms
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2229/comments
9
2018-03-01T00:06:24Z
2018-11-06T11:19:27Z
https://github.com/jerryscript-project/jerryscript/issues/2229
301,231,402
2,229
[ "jerryscript-project", "jerryscript" ]
The following commit in NuttX tools cause a build failure on the Travis CI: https://bitbucket.org/nuttx/tools/commits/164450f982b404fdc2b3233db51dc3eaa1f08b7f **output:** ``` make -C ../tools/kconfig-frontends make[1]: Entering directory `/home/travis/build/jerryscript-project/tools/kconfig-frontends' /home/trav...
Fix the Nuttx build on Travis CI
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2224/comments
0
2018-02-26T14:01:36Z
2018-02-27T09:12:06Z
https://github.com/jerryscript-project/jerryscript/issues/2224
300,249,448
2,224
[ "jerryscript-project", "jerryscript" ]
It would be good to release JerryScript 2.0 this year. No specific deadline so far. What we should do before that is reworking the API. Some ideas: - delete obsolote functions - rework error flag to be an error value (error can only be a result of something, and cannot be used as input except unboxing its value)...
JerryScript 2.0
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2213/comments
23
2018-02-20T07:21:14Z
2019-08-04T10:49:26Z
https://github.com/jerryscript-project/jerryscript/issues/2213
298,493,894
2,213
[ "jerryscript-project", "jerryscript" ]
Hello JerryScript, I have a little question. :) I'm comparing embeddable javascript engines. I need a js engine which is available on linux, macos, android, ios and windows. I cannot see windows support now. Is it in progress or is it planned?
Windows port
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2211/comments
19
2018-02-17T20:02:02Z
2022-01-27T11:45:48Z
https://github.com/jerryscript-project/jerryscript/issues/2211
298,032,112
2,211
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: d7991ae5 Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript new RegExp("\{{91406,456}"); ``` ###### Backtrace: ``` ICE: Assertion 'qmin <= qmax' failed at jerryscript/jerry-core/parser/r...
Assertion 'qmin <= qmax' failed in re_insert_simple_iterator
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2204/comments
1
2018-02-13T16:23:52Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/2204
296,799,049
2,204
[ "jerryscript-project", "jerryscript" ]
Right now there are [2 debugger client implementations]: 1) a CLI client written in python 2) a browser based client written in HTML/JS. Both re-implement similar thing. Both are written in ways that make it hard to reuse pieces of the code in other contexts, mainly because they are written as large, monolithic blob...
[Discussion] Refactor jerry-client-ws.html/py into reusable library
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2203/comments
8
2018-02-12T16:08:39Z
2018-05-24T08:55:16Z
https://github.com/jerryscript-project/jerryscript/issues/2203
296,430,508
2,203
[ "jerryscript-project", "jerryscript" ]
Jerry version: Checked revision: `e8608707b6d9486022b4d72b280303923945fdeb` Build command: `./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --syst...
Heap buffer overflow while parsing malformed JSON hex escape sequence w/o closing quote
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2200/comments
3
2018-02-10T13:24:45Z
2018-02-16T08:02:04Z
https://github.com/jerryscript-project/jerryscript/issues/2200
296,100,625
2,200
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: e8608707 Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var id_0 = Object.prototype.toString ; Object.prototype.toString = function ( ) { return "SHIFTED" } ; RegExp ( '#1: __str = new S...
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2198/comments
1
2018-02-08T09:04:03Z
2018-02-19T07:57:46Z
https://github.com/jerryscript-project/jerryscript/issues/2198
295,432,733
2,198
[ "jerryscript-project", "jerryscript" ]
I tried to run example on ubuntu 14.04. I got a demo.c ``` #include <string.h> #include "jerryscript.h" int main (void) { const jerry_char_t script[] = "var str = 'Hello, World!';"; size_t script_size = strlen ((const char *) script); bool ret_value = jerry_run_simple (script, script_size, JERRY_IN...
[ERROR]when runing example, undefined reference to `jerry_run_simple'
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2193/comments
8
2018-02-01T15:07:14Z
2020-03-25T15:35:21Z
https://github.com/jerryscript-project/jerryscript/issues/2193
293,564,147
2,193
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 918eb22a Build command: ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --system-allocator=on --linke...
heap-buffer-overflow in lit_read_code_unit_from_hex
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2192/comments
0
2018-02-01T13:05:04Z
2018-02-01T21:37:38Z
https://github.com/jerryscript-project/jerryscript/issues/2192
293,522,732
2,192
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 918eb22a Build command: ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --system-allocator=on --linke...
stack-overflow in re_match_regexp
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2190/comments
2
2018-02-01T12:18:46Z
2019-01-17T19:16:51Z
https://github.com/jerryscript-project/jerryscript/issues/2190
293,509,616
2,190
[ "jerryscript-project", "jerryscript" ]
I have the latest JerryScript from the master branch. And tried to do something that worked some time ago. Namely - execute a snapshot and from the snapshot call a function. Here are the steps that I have used: 1. I have a `tests.js` with the following content ```js function sysloop() { // empty function... ...
Question: Calling function from snapshots
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2189/comments
7
2018-02-01T11:02:46Z
2018-02-02T08:10:03Z
https://github.com/jerryscript-project/jerryscript/issues/2189
293,488,146
2,189
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 918eb22a Build command: ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --system-allocator=on --linke...
heap-buffer-overflow in ecma_builtin_function_prototype_object_apply
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2182/comments
0
2018-01-30T17:37:24Z
2018-02-01T14:09:54Z
https://github.com/jerryscript-project/jerryscript/issues/2182
292,872,837
2,182
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 918eb22a Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var arrayBuffer = new ArrayBuffer(8); var start = { toString : function ( ) { throw "inend" ; } }; var end...
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2181/comments
0
2018-01-30T13:54:45Z
2018-02-01T10:30:04Z
https://github.com/jerryscript-project/jerryscript/issues/2181
292,790,786
2,181
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 918eb22a Build command: ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --jerry-libc=off --static-link=off --strip=off --system-allocator=on --linke...
heap-buffer-overflow in ecma_builtin_json_parse_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2180/comments
0
2018-01-30T13:49:16Z
2018-02-01T21:34:21Z
https://github.com/jerryscript-project/jerryscript/issues/2180
292,788,984
2,180
[ "jerryscript-project", "jerryscript" ]
Tested with an old version (ddbe067) and also the current master (0d04c80): Both strings should match: ``` bad = "'detailForm','detailForm:j_id166', []);\" ><img alt=\"Export to XLS format\" />\n</a>" good = "'detailForm','detailForm:j_id166');\" ><img alt=\"Export to XLS format\" />\n</a>" r = /'(detailForm:j_i...
Bug in regex concerning brackets in matched text
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2178/comments
0
2018-01-26T22:34:30Z
2018-01-31T08:27:33Z
https://github.com/jerryscript-project/jerryscript/issues/2178
292,052,209
2,178
[ "jerryscript-project", "jerryscript" ]
How do you guys feel about adding the "safe" variants of libc functions, for example `memcpy_s`, `strcpy_s` etc? In our project, we're trying to eliminate use of the "unsafe" variants. I would expect the code size to go up a little bit because of the additional argument(s). So perhaps it should be a config `#defi...
Using C11 safe (_s) libc functions?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2175/comments
7
2018-01-25T08:36:47Z
2019-10-22T14:39:31Z
https://github.com/jerryscript-project/jerryscript/issues/2175
291,489,243
2,175
[ "jerryscript-project", "jerryscript" ]
Specifically this check `(ecma_string_get_size (str_p) > buffer_size)` is exiting as expected if the jerry value is larger than the buffer. However it would be nice if there was another function that would be more tolerant of too big jerry string, by simply dropping the extra characters. I'm not too sure on the b...
Is there a jerry_string_to_char_buffer() that will fill a buffer, even if jerry string is too big?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2173/comments
5
2018-01-24T05:57:07Z
2018-02-08T12:43:18Z
https://github.com/jerryscript-project/jerryscript/issues/2173
291,092,987
2,173
[ "jerryscript-project", "jerryscript" ]
Hey JrS people! I'm trying to implement a native binding much alike Node's [`require.resolve()`](https://nodejs.org/api/modules.html#modules_require_resolve_request_options) The tricky thing about the `require.resolve` function is that when using a relative path, i.e. `require.resolve('./thing.js')` the look up hap...
Keep resource name for function objects?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2170/comments
3
2018-01-23T10:05:20Z
2019-10-21T13:19:49Z
https://github.com/jerryscript-project/jerryscript/issues/2170
290,776,978
2,170
[ "jerryscript-project", "jerryscript" ]
I want to define `Buffer` class like in Node.js. According to the Node.js docs, a buffer object can be used like as an array. For example, you can read a byte data at the first index by `buffer[0]`. I'm trying to implement Buffer object in native C and I found `jerry_define_own_property`. But I don't know how to def...
How to define getter/setter for array-like indexing?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2156/comments
3
2017-12-26T03:57:16Z
2018-05-10T06:17:52Z
https://github.com/jerryscript-project/jerryscript/issues/2156
284,489,461
2,156
[ "jerryscript-project", "jerryscript" ]
After the recent conversation on DigitalIn and friends, I think we need to change how the Mbed OS and JerryScript integrate. Having part of the build toolchain in jerryscript core repository does not make sense, and things like generating `main.cpp` and the `Makefile` from here are also annoying for users, as they'd ne...
Remove mbedos5 target
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2149/comments
4
2017-12-13T08:41:26Z
2019-01-11T16:20:42Z
https://github.com/jerryscript-project/jerryscript/issues/2149
281,666,091
2,149
[ "jerryscript-project", "jerryscript" ]
the target `Mbed/K64F` failed in CI. seems the URL error or the version conflict ``` removed ‘/etc/apt/sources.list.d/basho_riak.list’ Executing: /tmp/tmp.qLWGriNsXE/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com gpg: key EA...
CI failed in Mbed/K64F build
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2148/comments
2
2017-12-13T04:44:30Z
2018-05-18T18:01:25Z
https://github.com/jerryscript-project/jerryscript/issues/2148
281,623,817
2,148
[ "jerryscript-project", "jerryscript" ]
in ecma_gc_mark function ``` JERRY_ASSERT (prop_iter_p->types[0] == ECMA_PROPERTY_TYPE_HASHMAP || ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)); ecma_gc_mark_property ((ecma_property_pair_t *) prop_iter_p, 0); ecma_gc_mark_property ((ecma_property_pair_t *) prop_iter_p, 1)...
misuse of type in ecma_gc_mark_property function which can lead to memory corruption
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2146/comments
2
2017-12-12T02:07:06Z
2018-02-22T00:13:50Z
https://github.com/jerryscript-project/jerryscript/issues/2146
281,232,209
2,146
[ "jerryscript-project", "jerryscript" ]
I've found a strange parsing problem in object expression. ``` jerry> { a: 1, b: "abc" } Script Error: SyntaxError ``` The above expression results a parsing error. But, the below works well. ``` jerry> var x = { a: 1, b: "abc" }; undefined ``` One more strange thing is the following: ``` jerry> {...
Parsing problem in object expression
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2145/comments
4
2017-12-09T06:34:00Z
2017-12-11T05:38:03Z
https://github.com/jerryscript-project/jerryscript/issues/2145
280,692,281
2,145
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 90f2473f Build command: tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var a = new Uint8Array(2); a[0] = { valueOf : function() { throw "intoint" ; } }; ``` ###### Backtrace: ...
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2143/comments
1
2017-12-08T10:55:19Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/2143
280,450,416
2,143
[ "jerryscript-project", "jerryscript" ]
the following poc can trigger a heap buffer overflow bugs. ========================== RegExp("[\\x0"); ========================== ==3847==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xb580075d at pc 0x081224b6 bp 0xbfb5e7f8 sp 0xbfb5e7e8 READ of size 1 at 0xb580075d thread T0 #0 0x81224b5 in li...
heap-buffer-overflow in lit_read_code_unit_from_hex
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2140/comments
2
2017-12-07T06:24:06Z
2018-02-06T04:47:21Z
https://github.com/jerryscript-project/jerryscript/issues/2140
280,015,856
2,140
[ "jerryscript-project", "jerryscript" ]
I was trying to put a code compiled with Emscripten and run them on both node.js and iot.js, however iot.js fails to parse a particular regular expression. After tracing the issue I think JerryScript is not-compliant with other ECMA Script implementations. The line given by Emscripten is (matching a JavaScript funct...
Parsing Problem for Regex containing {} brackets
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2134/comments
5
2017-12-04T06:53:52Z
2018-01-24T11:23:03Z
https://github.com/jerryscript-project/jerryscript/issues/2134
278,889,190
2,134
[ "jerryscript-project", "jerryscript" ]
The current `jerryx_arg_string` ends up in a call into `jerry_string_to_char_buffer`. That function writes the string using the internal CESU-8 encoding. I'd be good to have a variant of this that uses UTF-8 encoding instead.
Add `jerryx_arg_utf8_string` to jerryx arg.h utility
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2132/comments
3
2017-12-01T09:09:09Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/2132
278,401,404
2,132
[ "jerryscript-project", "jerryscript" ]
Is there a simple example about JS calling c ++? How to call c ++ member functions in js file?
A little confused about JS calling c ++
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2127/comments
9
2017-11-29T02:41:26Z
2019-01-12T11:33:22Z
https://github.com/jerryscript-project/jerryscript/issues/2127
277,610,156
2,127
[ "jerryscript-project", "jerryscript" ]
I want to call javascript function in *.js file from C example hello.js, containing func1, func2, In C function, How do I call func1 in C files? In this case, how can i export all js functions to object for calling in C code?
How call JavaScript function from C
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2124/comments
4
2017-11-28T01:47:12Z
2017-11-28T11:49:34Z
https://github.com/jerryscript-project/jerryscript/issues/2124
277,230,273
2,124
[ "jerryscript-project", "jerryscript" ]
make -f ./targets/esp8266/Makefile.esp8266 /home/wang/jerryscript/jerry-core/ecma/base/ecma-globals.h:115:5: error: "UINTPTR_MAX" is not defined [-Werror=undef] #if UINTPTR_MAX <= UINT32_MAX ^ cc1: some warnings being treated as errors jerry-core/CMakeFiles/jerry-core.dir/build.make:62: recipe for target '...
error: "UINTPTR_MAX" is not defined
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2118/comments
8
2017-11-22T08:41:17Z
2018-01-29T08:57:37Z
https://github.com/jerryscript-project/jerryscript/issues/2118
275,984,729
2,118
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var value = {}; var poisonedThen = Object.defineProperty({}, 'then', { get: function() { throw value; ...
Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed in jmem_heap_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2111/comments
1
2017-11-16T10:45:47Z
2017-11-22T05:35:28Z
https://github.com/jerryscript-project/jerryscript/issues/2111
274,470,904
2,111
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var arrowFn = () => {}; arrowFn.hasOwnProperty('caller'); ``` ###### Backtrace: ``` ICE: Assertion '((j...
Assertion '((jmem_cpointer_t) uint_ptr) == uint_ptr' failed in jmem_decompress_pointer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2110/comments
1
2017-11-16T10:39:40Z
2017-12-25T09:42:26Z
https://github.com/jerryscript-project/jerryscript/issues/2110
274,469,106
2,110
[ "jerryscript-project", "jerryscript" ]
@jiangzidong the following code snippet is based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch ```js var p1 = new Promise(function(resolve, reject) { reject('Failed'); }); p1.then(function(value) { console.log(value); // "Success!" }).catch(function(e) ...
How to throw an exception in Promise
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2109/comments
1
2017-11-16T09:46:18Z
2018-02-16T09:29:41Z
https://github.com/jerryscript-project/jerryscript/issues/2109
274,452,815
2,109
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript print(new Number(8e-9).toFixed(20)); ``` ###### Backtrace: ``` ICE: Assertion 'lit_is_valid_cesu8_string (string_p, string_siz...
Assertion 'lit_is_valid_cesu8_string (string_p, string_size)' failed in ecma_new_ecma_string_from_utf8
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2108/comments
4
2017-11-16T09:38:05Z
2017-11-17T19:00:46Z
https://github.com/jerryscript-project/jerryscript/issues/2108
274,450,241
2,108
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var thenableWithError = { then: function() { throw new Error("") } } function executor(resolve) { ...
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2107/comments
1
2017-11-16T08:57:39Z
2017-11-22T05:36:04Z
https://github.com/jerryscript-project/jerryscript/issues/2107
274,438,728
2,107
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript new Float32Array({ length: 0x40000001 }) ``` ###### Backtrace: ``` ICE: Assertion 'ecma_get_value_type...
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/2106/comments
0
2017-11-16T08:53:59Z
2017-11-20T07:55:23Z
https://github.com/jerryscript-project/jerryscript/issues/2106
274,437,734
2,106
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript Object.freeze (this) { eval('{ function boo() {} }') } ``` ###### Backtrace: ``` ICE: Assertion 'ecma_is_value_empty (com...
Assertion 'ecma_is_value_empty (completion_value)' failed in vm_var_decl
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2105/comments
1
2017-11-16T08:51:11Z
2017-12-25T09:43:05Z
https://github.com/jerryscript-project/jerryscript/issues/2105
274,437,010
2,105
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7692aa9d Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript var value; Object.defineProperty (Array.prototype, 'then', {get: function() { throw$ } }) promise = Promise....
Assertion '!ecma_is_value_direct (x) || ecma_is_value_undefined (x) || ecma_is_value_null (x) || ecma_is_value_boolean (x) || ecma_is_value_integer_number (x)' failed in ecma_op_strict_equality_compare
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2104/comments
2
2017-11-16T08:48:18Z
2018-01-09T13:43:30Z
https://github.com/jerryscript-project/jerryscript/issues/2104
274,436,247
2,104
[ "jerryscript-project", "jerryscript" ]
During the scripting of target build test automation for Travis CI (#2102), several issues have been identified: - [ ] ESP8266: - The apt dependencies list was overly extensive (at least compared to what Travis CI had already installed on the worker image), sometimes even erroneous (e.g., didn't have to install any...
Outdated or incorrect build instructions for several targets
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2103/comments
2
2017-11-16T08:45:26Z
2018-01-10T09:31:20Z
https://github.com/jerryscript-project/jerryscript/issues/2103
274,435,522
2,103
[ "jerryscript-project", "jerryscript" ]
Hi Guys, I'm want to use JerryScript on Nuttx. I've created a RAMDISK using mkrd, then I used echo in order to create a file with a .js extension, but when I run jerry /mnt/fs/test.js, I got a message saying : Error: cannot open file: test.js Source file load error ...
JerryScript issue on Nuttx
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2098/comments
9
2017-11-14T15:02:59Z
2019-12-02T14:10:27Z
https://github.com/jerryscript-project/jerryscript/issues/2098
273,823,873
2,098
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6b1ed6e0 Build command: CC=clang ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --jerry-libc=off --static-link=off --lto=off --error-messages=on ``` ###### OS: ...
dynamic-stack-buffer-overflow in jerry_value_is_syntax_error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2094/comments
2
2017-11-14T09:15:57Z
2017-11-20T08:14:47Z
https://github.com/jerryscript-project/jerryscript/issues/2094
273,717,562
2,094
[ "jerryscript-project", "jerryscript" ]
After updating Zephyr to master, JerryScript will no longer build, since Zephyr now has changed to build with cmake: $ make -f targets/zephyr/Makefile.zephyr targets/zephyr/Makefile.zephyr:47: build/arduino_101/zephyr/Makefile.export: No such file or directory make -f ./targets/zephyr/Makefile O="build/arduino_10...
Zephyr target fails to build with latest Zephyr cmake changes
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2093/comments
2
2017-11-13T20:55:50Z
2018-09-21T08:33:35Z
https://github.com/jerryscript-project/jerryscript/issues/2093
273,574,678
2,093
[ "jerryscript-project", "jerryscript" ]
Hi, I want to build jerryscript for RIOT. If I try to build the source via ``` make -f ./targets/riot-stm32f4/Makefile.riot ``` I get the following errors ```c [ 0%] Building C object jerry-core/CMakeFiles/jerry-core.dir/ecma/operations/ecma-regexp-object.c.obj /home/frey/Desktop/Projects/jerryscript/jerry-c...
riot-stm32f4 fails to build
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2085/comments
11
2017-11-10T13:32:56Z
2018-02-05T15:18:22Z
https://github.com/jerryscript-project/jerryscript/issues/2085
272,933,470
2,085
[ "jerryscript-project", "jerryscript" ]
Before PR #2042, `jerry_value_clear_error_flag` and `jerry_value_set_error_flag` would take a `jerry_value_t *` and set a flag onto it. After each of these calls return, the `jerry_value_t` that the pointer points to would still be a reference to the same JS thing as before. After PR #2042, after the `jerry_value_se...
Changes from #2042 break semantic API compatibility
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2080/comments
10
2017-11-09T14:13:24Z
2018-02-16T09:30:23Z
https://github.com/jerryscript-project/jerryscript/issues/2080
272,578,056
2,080
[ "jerryscript-project", "jerryscript" ]
Hi Guys, I want to build Jerryscript for NuttX on a NUCLEO-F401RE board. I followed the instructions exactly in the https://github.com/jerryscript-project/jerryscript/tree/master/targets/nuttx-stm32f4 except for step 3, I used ./configure.sh nucleo-f4x1re/f401-nsh. And when I try to build JerryScript for NuttX (Step...
arm-none-eabi-ld: region `sram' overflowed by 16492 bytes
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2077/comments
7
2017-11-08T19:54:47Z
2017-11-14T19:28:34Z
https://github.com/jerryscript-project/jerryscript/issues/2077
272,327,990
2,077
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: bdcd2d8 Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript Date.parse("2015-01-01T01߄'a': 1}:01F"); ``` [Download test case](https://github.com/jerryscript-project/jerryscript/files/1450939/te...
Assertion '(c & LIT_UTF8_3_BYTE_MASK) == LIT_UTF8_3_BYTE_MARKER' failed in lit_read_code_unit_from_utf8
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2073/comments
1
2017-11-07T17:14:58Z
2017-11-15T07:12:43Z
https://github.com/jerryscript-project/jerryscript/issues/2073
271,913,289
2,073
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 678fcb20 Build command: ./tools/build.py --clean --debug --error-messages=on ``` ###### OS: ``` Ubuntu 17.10 ``` ###### Test case: ```javascript null[1] = 'abcd'; ``` ###### Backtrace: ``` Script Error: TypeError: Cannot set property '1' of null ICE...
Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed in jmem_heap_allocated_size
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2069/comments
1
2017-11-03T13:49:31Z
2017-11-06T14:48:06Z
https://github.com/jerryscript-project/jerryscript/issues/2069
270,984,045
2,069
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: d9cc3fd Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript var a = Promise.prototype; for (var i = 0; i < 200; i++) { Promise.race([a]).then(); } ``` #...
Assertion 'object_p->type_flags_refs >= ECMA_OBJECT_REF_ONE' failed in ecma_deref_object
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2065/comments
2
2017-10-29T14:20:46Z
2017-12-12T03:40:25Z
https://github.com/jerryscript-project/jerryscript/issues/2065
269,402,789
2,065
[ "jerryscript-project", "jerryscript" ]
Is there a Javascript interface to force Garbage Collection to happen in Jerryscript? I know there's a way to do it from the C perspective, but I can't find a way to do it in JS. Other JS environments have ways to force garbage collection in JS. Opera's window.opera.collect() and Node's global.gc() are two examples....
How To Force Garbage Collection
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2062/comments
6
2017-10-27T06:56:03Z
2017-10-29T18:10:42Z
https://github.com/jerryscript-project/jerryscript/issues/2062
269,005,968
2,062
[ "jerryscript-project", "jerryscript" ]
``` javascript var p = Promise.resolve(1).then(function(x) { print(x) // will print 1 return Promise.resolve(2) }).then(function(x) { print(x) // should print 2, but now this will not be executed }) ``` I will fix soon.
promise bug: cannot handle thenable job
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2060/comments
2
2017-10-27T05:11:19Z
2017-11-01T01:53:59Z
https://github.com/jerryscript-project/jerryscript/issues/2060
268,989,946
2,060
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: d7c710d Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript /?:/ ``` ###### Backtrace: ``` ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry...
Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed in jmem_heap_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2058/comments
0
2017-10-26T08:35:18Z
2017-10-31T14:47:20Z
https://github.com/jerryscript-project/jerryscript/issues/2058
268,672,476
2,058
[ "jerryscript-project", "jerryscript" ]
Because `srand()` is not used on initialization. Without it, the `Math.random()` function generates the same results every time (not every call, but every time the environment runs). This works on other JS engines like V8 (nodejs). IMHO we should look to achieve same results to be consistent with JS platform
Math.random() generates same results
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2053/comments
8
2017-10-24T08:05:49Z
2017-11-03T14:32:20Z
https://github.com/jerryscript-project/jerryscript/issues/2053
267,934,917
2,053
[ "jerryscript-project", "jerryscript" ]
We're missing an argument transform for JS arrays. Proposal / Sketch -- it's basically more or less the same as the object properties transform: ``` /** * Validate the elements in the JS array and assign them to the native arguments. * * @return jerry undefined: all validators passed, * jerry error...
jerryx arg.h: add jerryx_arg_transform_array
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2046/comments
3
2017-10-20T07:29:20Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/2046
267,086,479
2,046
[ "jerryscript-project", "jerryscript" ]
Setting FEATURE_SYSTEM_ALLOCATOR for an x86_64 host build does not work. jerry/jerry-core/jmem/jmem-allocator.c:69..72 >#if defined (ECMA_VALUE_CAN_STORE_UINTPTR_VALUE_DIRECTLY) && defined (JERRY_CPOINTER_32_BIT) > JERRY_ASSERT (((jmem_cpointer_t) uint_ptr) == uint_ptr); >#else /* !ECMA_VALUE_CAN_STORE_UINTPTR_VAL...
System allocator is not supported for x86_64
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2041/comments
4
2017-10-10T17:08:41Z
2017-10-20T11:44:02Z
https://github.com/jerryscript-project/jerryscript/issues/2041
264,305,906
2,041
[ "jerryscript-project", "jerryscript" ]
The "prototype" property of a function created with `jerry_create_external_function ()` is undefined. This means that one cannot construct classes and then expose them to JS. We have `jerry_value_is_constructor ()` which allows one to determine if a value can be used as a constructor, and we have `jerry_construct_ob...
native-backed functions have no "prototype" property
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2040/comments
8
2017-10-10T11:14:28Z
2018-02-16T10:34:55Z
https://github.com/jerryscript-project/jerryscript/issues/2040
264,189,156
2,040
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 1cc7cb5 Build command: ./tools/build.py --clean --debug --compile-flag=-m32 --jerry-libc=off --system-allocator=on --error-messages=on --profile=es2015-subset ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: [Download test case](https://github.com/j...
Assertion 'destination_p == destination_start_p + literal_p->length' failed in lexer_construct_literal_object
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2039/comments
0
2017-10-05T08:16:54Z
2017-11-09T05:12:36Z
https://github.com/jerryscript-project/jerryscript/issues/2039
263,039,429
2,039
[ "jerryscript-project", "jerryscript" ]
I am trying to build my project for STM32F429ZI and I have noticed an issue with generate_pins.py script. It fails while trying to evaluate expressions. For example, I am getting this error while building. ``` zMacBookPro:mbed-js-example zeeshan$ gulp --target=NUCLEO_F429ZI [15:30:03] Using gulpfile ~/Programming/...
Problem with generate_pins.py script in mbedos5
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2038/comments
2
2017-10-04T13:44:53Z
2018-05-10T06:34:29Z
https://github.com/jerryscript-project/jerryscript/issues/2038
262,792,876
2,038
[ "jerryscript-project", "jerryscript" ]
During the meeting it was discussed that other engines use an "error mode" rather than signal the error as a flag in the return value. The advantage of that approach is we can free up the flag bit in the jerry value, so new JS types such as symbols could be implemented. The drawback is a breaking API change. What shall...
New error management system for JerryScript
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2031/comments
7
2017-09-29T06:16:14Z
2018-05-10T10:12:45Z
https://github.com/jerryscript-project/jerryscript/issues/2031
261,541,565
2,031
[ "jerryscript-project", "jerryscript" ]
I want to use mbed-cli debugger,so I edit __/mbed-js-example/build/jerryscript/targets/mbedos5__ -> __DEBUG?=1__ my commend is ```gulp --target=NUCLEO_F401RE``` but I got this error ``` Compile [100.0%]: test_env.cpp Link: mbedos5 /usr/local/Cellar/gcc-arm-none-eabi/20160928/bin/../lib/gcc/arm-none-eabi/5.4.1/../...
mbed debugger error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2030/comments
9
2017-09-29T02:58:49Z
2017-10-16T14:38:02Z
https://github.com/jerryscript-project/jerryscript/issues/2030
261,518,342
2,030
[ "jerryscript-project", "jerryscript" ]
I am trying to take my javascript code (previously run in a browser) and run it from jerryscript. My JS code uses websockets libraries. Does jerryscript support this or any other network protocol library?
Does jerryscipt support Websockets JS library?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2029/comments
10
2017-09-28T23:17:15Z
2017-10-11T21:38:10Z
https://github.com/jerryscript-project/jerryscript/issues/2029
261,489,042
2,029
[ "jerryscript-project", "jerryscript" ]
I see IoT.js use jerry_call_function in other thread not jerryscript thread, it is a right implementation? I test that code and no error happen, but it lead to javascript code run in multiple thread, it is dangerous? https://github.com/Samsung/iotjs/blob/master/src/platform/linux/iotjs_module_gpio-linux.c line: 8...
what happen when jerry_call_function called in other thread
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2023/comments
5
2017-09-25T04:00:01Z
2018-04-01T15:09:21Z
https://github.com/jerryscript-project/jerryscript/issues/2023
260,148,828
2,023
[ "jerryscript-project", "jerryscript" ]
#### PoC and Crash in release 1.0.0 Assigned as CVE-2017-14749, Credit by ADLab of Venustech PoC.js is as follows(hex displayed): ``` 00000000: 275c 0a27 2b27 3035 3627 3b0a '\.'+'056';. ``` Among the first string, there is a '\n'(0x0a). This byte could be replaced by '\r'(0x0d) or other bytes as wit...
Security: NULL word of bytecode.literal lead to heap memory corruption results in OOB write.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/2008/comments
2
2017-09-07T07:48:07Z
2017-10-30T20:56:19Z
https://github.com/jerryscript-project/jerryscript/issues/2008
255,845,370
2,008
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7905422 Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript var a = Promise.resolve(); for (;;) Promise.race([a]).then() $ ``` ###### Backtrace: ``` I...
Assertion 'compressed_pointer != JMEM_CP_NULL' in jmem_decompress_pointer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1997/comments
1
2017-09-04T14:45:57Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/1997
255,062,387
1,997
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7905422 Build command: ./tools/build.py --clean --debug --profile=es2015-subset ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript new Promise(function(f) { f.apply() }) ``` ###### Backtrace: ``` Program received signal SI...
Segmentation fault in ecma_promise_resolve_handler
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1996/comments
1
2017-09-04T14:35:16Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/1996
255,059,751
1,996
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 7525006 Build command: ./tools/build.py --clean --debug --profile=es2015-subset --jerry-libc=off ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript Promise.race([""]).$() ``` ###### Backtrace: ``` Script Error: ReferenceError I...
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1995/comments
1
2017-09-04T14:26:35Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/1995
255,057,498
1,995
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: ce18704 Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript parseFloat(Number.MAX_VALUE).toFixed(5); ``` ###### Backtrace: ``` Program received signal SIGSEGV, Segmentation fault. ...
Segmentation fault in ecma_builtin_number_prototype_object_to_fixed
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1993/comments
2
2017-09-04T09:30:15Z
2017-11-10T14:14:25Z
https://github.com/jerryscript-project/jerryscript/issues/1993
254,985,222
1,993
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 0ef2418 Build command: ./tools/build.py --clean --debug ``` ###### OS: ``` Ubuntu 16.04.3 LTS ``` ###### Test case: ```javascript unescape("%f׊nd") ``` [Download test case](https://github.com/jerryscript-project/jerryscript/files/1266743/test.txt) ######...
Assertion 'lit_is_valid_cesu8_string (string_p, string_size)' failed in ecma_new_ecma_string_from_utf8
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1990/comments
1
2017-08-31T10:39:29Z
2017-09-25T10:41:01Z
https://github.com/jerryscript-project/jerryscript/issues/1990
254,291,169
1,990
[ "jerryscript-project", "jerryscript" ]
Hi, I would like to nominate SangGyu Lee (glistening) to be a JerryScript committer. I trust him to follow our process. His patch list follows: - Fix new ArrayBuffer(length) for variaous input (#1959) - Implement typedarary.set(array, offset) (#1958) - Change tizenrt-artik05x port reference board to artik053 (#...
Nominating SangGyu Lee (glistening) to be a JerryScript committer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1986/comments
9
2017-08-29T15:17:14Z
2017-09-05T10:10:46Z
https://github.com/jerryscript-project/jerryscript/issues/1986
253,702,726
1,986
[ "jerryscript-project", "jerryscript" ]
I noticed that certain features affect the snapshot output format (logically so): - whether uncompressed / 32-bit pointers is enabled - machine endianness - js-parser-limits.h values – `PARSER_MAXIMUM_CODE_SIZE` affects the byte code generation. I'm not sure if any of the other parser limit values are relevant whe...
Add relevant features/snapshot properties bitset to snapshot header
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1981/comments
7
2017-08-25T20:22:36Z
2017-10-12T17:49:20Z
https://github.com/jerryscript-project/jerryscript/issues/1981
253,008,488
1,981
[ "jerryscript-project", "jerryscript" ]
I'm interested in having a JavaScript library / module that can take a JS source string and produce a JerryScript snapshot. At a previous company, we had built something like this, simply by using Emscripten to transpile the C code that produces snapshots into JS. The advantage is that such a library is very easily "po...
Add jerryscript-snapshot-compiler.js ?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1977/comments
7
2017-08-23T14:49:03Z
2019-10-25T18:54:42Z
https://github.com/jerryscript-project/jerryscript/issues/1977
252,310,618
1,977
[ "jerryscript-project", "jerryscript" ]
There's a recursion bug in regex handling code On Ubuntu 16.04.2, $ python tools/build.py --compile-flag=-m32 --clean --jerry-libc=OFF --system-allocator ON --compile-flag=-ggdb3 --debug --link-lib mcheck (gdb) shell cat x.js ''.match(/(){70000}/) (gdb) r Starting program: /afl/new/jerryscript/bui...
Out-of-stack-space DoS in regex code
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1975/comments
1
2017-08-18T22:30:45Z
2019-01-02T10:00:31Z
https://github.com/jerryscript-project/jerryscript/issues/1975
251,373,560
1,975
[ "jerryscript-project", "jerryscript" ]
Only an assert stops this from being outside of the correct region. It seems that in most cases the result is pretty benign, but I wouldn't recommend relying on that. On Ubuntu 16.04.2, $ python tools/build.py --compile-flag=-m32 --clean --jerry-libc=OFF --system-allocator ON --compile-flag=-ggdb3 --debug --lin...
ecma_builtin_number_prototype_object_to_string access outside of buffer region (005)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1974/comments
0
2017-08-18T21:23:03Z
2017-08-30T00:07:27Z
https://github.com/jerryscript-project/jerryscript/issues/1974
251,362,235
1,974
[ "jerryscript-project", "jerryscript" ]
Seemingly infinite loop while trying to convert a string representing an exponential number to a number. On Ubuntu 16.04.2, $ python tools/build.py --compile-flag=-m32 --clean --jerry-libc=OFF --system-allocator ON --compile-flag=-ggdb3 --debug --link-lib mcheck $ cat hang.js 777E7777777777-----00,'); ...
Hang while parsing string exponent to number (004)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1973/comments
2
2017-08-18T21:01:54Z
2017-10-27T10:32:44Z
https://github.com/jerryscript-project/jerryscript/issues/1973
251,357,919
1,973
[ "jerryscript-project", "jerryscript" ]
Only an assert stops the function ecma_get_float_from_value from returning pointers from within an ecma value of the wrong type (it's not a float), which will happen in release builds because the assert is compiled out. It's likely that this has a security impact. On Ubuntu 16.04.2, $ python tools/build.py --c...
Type confusion in release builds while setting array length from not a number (003)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1972/comments
1
2017-08-18T20:47:36Z
2017-08-31T06:18:53Z
https://github.com/jerryscript-project/jerryscript/issues/1972
251,354,910
1,972
[ "jerryscript-project", "jerryscript" ]
There's a string validity check but it gets compiled out during release builds. Struck me that this validity check should probably happen in release builds also - so an if as well as an assert. On Ubuntu 16.04.2, $ python tools/build.py --compile-flag=-m32 --clean --jerry-libc=OFF --system-allocator ON --compile-...
String parsing issue: validity checks only in debug builds (002)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1971/comments
1
2017-08-18T00:06:32Z
2017-08-30T12:26:56Z
https://github.com/jerryscript-project/jerryscript/issues/1971
251,105,798
1,971
[ "jerryscript-project", "jerryscript" ]
There's an exploitable heap corruption bug, where the garbage collector runs off the end of a bound function object and enters whatever else is after that. Owing to a sanity check on the arguments, this is super exploitable although I don't have an exploit for it. On Ubuntu 16.04.2, $ python tools/build.py --comp...
Security relevant heap corruption while garbage collecting bound functions (001)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1970/comments
1
2017-08-17T23:55:37Z
2017-09-04T08:25:20Z
https://github.com/jerryscript-project/jerryscript/issues/1970
251,104,242
1,970
[ "jerryscript-project", "jerryscript" ]
Hi, when I was trying to build jerryscript under arm-none-eabi-gcc, I found that the FALLTHRU comments need to placed after right brackets. So here is the interesting part: I wrote a minor fix on this, but found it can't pass the vera++ check (which forced us to place FALLTHRU before right bracket).
Under gcc v7.1.0, the FALLTHRU comments need to be placed differently
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1965/comments
2
2017-08-13T03:21:51Z
2017-08-24T15:14:58Z
https://github.com/jerryscript-project/jerryscript/issues/1965
249,849,410
1,965
[ "jerryscript-project", "jerryscript" ]
I ran into a problem today where an object wasn't getting freed. It turned out this was because its native pointer struct held acquired references to "listener" functions which in turn were bound to a scope object that held the original object as a property. I had to dig deeply into the GC today to learn about these th...
Semi-circular references
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1963/comments
20
2017-08-12T00:50:17Z
2019-01-12T15:14:31Z
https://github.com/jerryscript-project/jerryscript/issues/1963
249,777,577
1,963
[ "jerryscript-project", "jerryscript" ]
The definition of `new ArrayBuffer(length)` is changed in ES2017. ( I pushed #1959 before I recognise it. I would like to get opinions. ) For example, `ES2015` _new ArrayBuffer(1.1)_ should throw RangeError. `ES2017` _new ArrayBuffer(1.1)_ creates ArrayBuffer with byteLength=1. I would like to follow...
ES2015 or ES2017 for new ArrayBuffer(length)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1962/comments
3
2017-08-11T19:46:15Z
2017-08-17T01:21:13Z
https://github.com/jerryscript-project/jerryscript/issues/1962
249,730,395
1,962
[ "jerryscript-project", "jerryscript" ]
Apologies if there is some way to do this that I have missed. But it seems like it would be quite useful for debugging to have a method like: uint16_t jerry_get_ref_count(jerry_value_t obj); I've managed to create a macro that hacks my way to this information but it will likely break with future changes to JrS an...
Request: API to get current ref count
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1961/comments
5
2017-08-11T16:53:42Z
2018-06-07T13:24:03Z
https://github.com/jerryscript-project/jerryscript/issues/1961
249,691,284
1,961
[ "jerryscript-project", "jerryscript" ]
See https://github.com/jerryscript-project/jerryscript/blob/master/jerry-ext/include/jerryscript-ext/module.h#L51 `module_name` is stringified, which will cause the argument to not be evaluated by the preprocessor but used verbatim. After having used the macro in practice, I found that it's not desirable to strin...
Remove stringification of JERRYX_NATIVE_MODULE module_name argument?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1952/comments
6
2017-08-03T08:53:12Z
2017-09-22T10:35:41Z
https://github.com/jerryscript-project/jerryscript/issues/1952
247,635,758
1,952
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 2a2a15f Build command: ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-m32 --system-allocator=on --jerry-libc=off --error-messages=on ``` ###### OS: ``` Ubuntu 16.04.2 LTS ``` ###### Test case: ```javascript -'' ``` ###### Backtra...
Assertion 'size > 0' failed in jmem_heap_free_block
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1950/comments
0
2017-08-01T18:23:25Z
2017-08-01T18:28:24Z
https://github.com/jerryscript-project/jerryscript/issues/1950
247,158,438
1,950
[ "jerryscript-project", "jerryscript" ]
I think it would be nice if the `jerry-core.h` API would have C APIs that match JSON.parse/stringify. Proposal API: ``` typedef jerry_value_t (*jerry_json_reviver_t) (jerry_value_t key, jerry_value_t value); jerry_value_t jerry_json_parse_utf8 (const jerry_char_t *utf8_str, size_t str...
JSON.parse/stringify C APIs?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1949/comments
4
2017-08-01T14:05:17Z
2019-01-12T11:26:53Z
https://github.com/jerryscript-project/jerryscript/issues/1949
247,080,686
1,949
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6fe4d06 Build command: ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-m32 --system-allocator=on --jerry-libc=off --error-messages=on ``` ###### OS: ``` Ubuntu 16.04.2 LTS ``` ###### Test case: ```javascript function $ ( ) { function $ ( ) { switch...
in jmem_heap_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1948/comments
0
2017-08-01T13:32:04Z
2017-08-01T13:32:39Z
https://github.com/jerryscript-project/jerryscript/issues/1948
247,070,284
1,948
[ "jerryscript-project", "jerryscript" ]
###### Jerry version: ``` Checked revision: 6fe4d06 Build command: ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-m32 --system-allocator=on --jerry-libc=off --error-messages=on ``` ###### OS: ``` Ubuntu 16.04.2 LTS ``` ###### Test case: ```javascript function $ ( ) { function $ ( ) { switch...
Assertion failed in jmem_heap_finalize
https://api.github.com/repos/jerryscript-project/jerryscript/issues/1947/comments
2
2017-08-01T13:32:01Z
2017-09-07T00:42:11Z
https://github.com/jerryscript-project/jerryscript/issues/1947
247,070,267
1,947