Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235328

An issue about Object.getOwnPropertySymbols

    Details

      Description

      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


        Attachments

          Activity

            People

            • Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: