ccxvii / mujs

An embeddable Javascript interpreter in C.

Home Page:http://mujs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array.prototype.sort lacks of comparefn

mochaaP opened this issue · comments

mujs/jsarray.c

Line 339 in db110ea

qsort(array, n, sizeof *array, sortcmp);

https://262.ecma-international.org/6.0/#sec-array.prototype.sort

This is a part of ES2015 standard, so we should actually implement it?

Seems I'm wrong. It's actually implemented, closing.