Open
Description
Summary
console.log()
fails upon seeing a cyclic structure like a Set
with itself inside of it.
Minimal Reproduction Sample
var x = new Set;
x.add(x); // add itself to itself
// nothing happens yet.
console.log(x) // Segmentation Fault
Expected Output
Log: [object Set]
Actual behavior
Segmentation fault (core dumped)
Log output and (if possible) backtrace
This segment is continually repeated until the segfault:
DEBUG runtime: getMethod(): value does not have function member: toPrimitive
DEBUG runtime: getMethod(): value does not have function member: valueOf
DEBUG runtime: getMethod(): value has field: toString
DEBUG runtime: getMethod(): method is a native callable
Bali Version
Bali: 0.6.3
Boehm-Demers-Weiser GC: 8.2.8
Bali is developed by the Ferus Project. All of the source code is licensed under the GNU General Public License 3.
Build flags or config settings
No response
Contribute a patch?
- I’ll contribute a patch for this myself.
Metadata
Metadata
Assignees
Labels
No labels