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

Nashorn cannot execute node.js's express module

    XMLWordPrintable

Details

    • b17
    • generic
    • 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

                sundar Sundararajan Athijegannathan
                jtulach Jaroslav Tulach (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: