# Version: quickjs-2019-10-27
# Testcase:
var NISLFuzzingFunc = function() {
var x = escape(String(null));
print(x);
var y = escape(null);
print(y);
};
NISLFuzzingFunc();
# Command:
quickjs-2019-09-18/qjs testcase.js
# Output:
null
TypeError: null or undefined are forbidden
at NISLFuzzingFunc (testcase.js:4)
at <eval> (testcase.js:8)
# Expected output:
null
null
# Description:
According to ES2020, when calling function 'escape (string)', the argument
should be converted to string at first while QuickJS does not do it.
The reference of ES2020 is as follows:
https://tc39.es/ecma262/#sec-escape-string