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

An issue about Object.getOwnPropertySymbols

XMLWordPrintable

    • 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


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

              Created:
              Updated: