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

Nashorn cannot execute node.js's express module

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        As mentioned on https://avatar-js.java.net/ page, currently JDK8 with nashorn cannot execute express module due problems related to changing __proto__ to undefined. The fix on the library side is simple:

        node_modules/ejs/lib/ejs.js line 286

        - options.__proto__ = options.locals;
        + if (options.locals) options.__proto__ = options.locals;

        yet we need to run existing node.js application without modification and as such I'd like to propose a fix on the Nashorn side as well.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sundar Sundararajan Athijegannathan
                  Reporter:
                  jtulach Jaroslav Tulach
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: