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

npm fails at end of run, when enabling nashorn lazy compilation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None

      This occurs in npm project. Enable lazy compilation --lazy-compilation, you will get the pasted Stack.

      Line 57 of which.js, E function is undefined.

      Exception in thread "main" /Users/jfdenise/workspaces/npmjar/npm/node_modules/which/which.js:57 TypeError: Cannot call undefined
      at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:66)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:222)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:194)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:181)
      at jdk.nashorn.internal.runtime.Undefined.lookupTypeError(Undefined.java:128)
      at jdk.nashorn.internal.runtime.Undefined.lookup(Undefined.java:100)
      at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:78)
      at jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
      at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
      at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:138)
      at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:229)
      at jdk.nashorn.internal.scripts.Script$Lazy$_L1$which$F$E$_L49$which._L1$which$F$E$_L49(/Users/jfdenise/workspaces/npmjar/npm/node_modules/which/which.js:57)
      at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:514)
      at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:205)
      at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
      at jdk.nashorn.internal.objects.NativeFunction.apply(NativeFunction.java:115)
      at jdk.nashorn.internal.scripts.Script$Lazy$_L1$makeCallback$_L296$fs._L1$makeCallback$_L296(fs.js:297)
      at jdk.nashorn.internal.scripts.Script$Lazy$_L26$_L70$_L72$fs_wrap._L26$_L70$_L72(jar:file:/Users/jfdenise/workspaces/npmjar/lib/node-0.1.jar!/com/oracle/node/fs_wrap.js:73)
      at jdk.nashorn.internal.javaadapters.com.oracle.node.eventloop.Callback.call(Unknown Source)
      at com.oracle.node.eventloop.EventLoop.processEvent(EventLoop.java:209)
      at com.oracle.node.eventloop.EventLoop.run(EventLoop.java:198)
      at com.oracle.node.Server.runUserScripts(Server.java:167)
      at com.oracle.node.Server.run(Server.java:119)
      at com.oracle.node.Launcher.main(Launcher.java:31)

            akhil Akhil Arora (Inactive)
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: