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

Nashorn cannot execute node.js's express module

XMLWordPrintable

    • b17
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: