Skip to content

Out of memory error with JSON.stringify #411

@renatahodovan

Description

@renatahodovan
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:
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourecma builtinsRelated to ECMA built-in routines

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions