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

An issue about Object.getOwnPropertySymbols

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86_64
    • OS:
      generic

      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

          Issue Links

            Activity

              People

              Assignee:
              attila Attila Szegedi
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: