docs: public Object executeScriptWithContinuations(Script script,
              Scriptable scope)
          throws ContinuationPending
      {
          if (!(script instanceof InterpretedFunction) ||
              !((InterpretedFunction)script).isScript())
          {
              // Can only be applied to scripts
              throw new IllegalArgumentException("Script argument was not" +
                      " a script or was not created by interpreted mode ");
          }
          return callFunctionWithContinuations((InterpretedFunction) script,
                  scope, ScriptRuntime.emptyArgs);
      }