Hi,
If I understand the ES standard correctly, I think the abstract
operation ToNumber of QuickJS does not meet the ES standard.The details are as
follows:
# Version: quickjs-2019-10-27
# Testcase:
var NISLFuzzingFunc = function() {
var tmp = Number("-");
print(tmp);
};
NISLFuzzingFunc();
# Output:
0
# Expected output:
NaN
# Reference of ECMAScript-262:
https://tc39.es/ecma262/#sec-tonumber
Best Regards,
Houyou Yao