java scripting API - how to stop the evaluation

后端 未结 7 1658
孤城傲影
孤城傲影 2020-12-09 06:10

i have writen a servlet that recives a java script code and process it and returns the answer. for that i have used the java scripting API

in the code below if scrip

7条回答
  •  心在旅途
    2020-12-09 07:07

    Context.observeInstructionCount is only called in interpreted mode, so that's a significant performance hit. I sure hope the Rhino team comes up with a better way.

提交回复
热议问题