-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
13
-
Fix Understood
-
x86_64
-
generic
A DESCRIPTION OF THE PROBLEM :
## description:
The method Object.getOwnPropertySymbols has its Initial definition in ES6.
According to ES6, the argument will be processed by ToObject. Itâs not appropriate to throw an error if argument is not an object.
## testcase:
var NISLFuzzingFunc = function() {
var p = true;
Object.getOwnPropertySymbols(p);
};
NISLFuzzingFunc();
## command:
./nashorn/jdk-13.0.1/bin/jjs testcase.js
## output:
TypeError: true is not an Object
## description:
The method Object.getOwnPropertySymbols has its Initial definition in ES6.
According to ES6, the argument will be processed by ToObject. Itâs not appropriate to throw an error if argument is not an object.
## testcase:
var NISLFuzzingFunc = function() {
var p = true;
Object.getOwnPropertySymbols(p);
};
NISLFuzzingFunc();
## command:
./nashorn/jdk-13.0.1/bin/jjs testcase.js
## output:
TypeError: true is not an Object
- relates to
-
JDK-8258868 Object methods should call ToObject in ES6 mode
- Open