[quickjs-devel] Re: A issue about Object.getOwnPropertySymbols

  • From: Fabrice Bellard <fabrice@xxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Mon, 11 May 2020 18:50:53 +0200

Thank you for the report. The bug will be corrected in the next release.

Best regards,

Fabrice.

On 05/11/2020 09:27 AM, Houyou yao wrote:

Hello,
As all objects have no own symbol properties initially, Object.getOwnPropertySymbols() returns an empty array unless you have set symbol properties on your object.

# Version: quickjs-2020-01-05

# Testcase:
NISLFuzzingFunc = function (nislMutationParameter0) {
     var t = Object.getOwnPropertySymbols(nislMutationParameter0);
     print(t.length);
     print(t);
}
var nislMutationArgument0 = [null,true,null];
var NISLCallingResult = NISLFuzzingFunc(nislMutationArgument0);

# Command:
quickjs-2020-01-05/qjs testcase.js

# Output:
3
1,2,3

# Expected output:
0


Best Regards,
Houyou Yao


Other related posts: