[njs] Simplified njs_vm_call().

Dmitry Volyntsev xeioex at nginx.com
Thu Jan 10 16:00:52 UTC 2019


details:   https://hg.nginx.org/njs/rev/5da4da7386a8
branches:  
changeset: 720:5da4da7386a8
user:      hongzhidao <hongzhidao at gmail.com>
date:      Tue Jan 08 05:02:20 2019 +0800
description:
Simplified njs_vm_call().

diffstat:

 njs/njs.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (19 lines):

diff -r 6ee587abd958 -r 5da4da7386a8 njs/njs.c
--- a/njs/njs.c	Tue Jan 08 04:11:51 2019 +0800
+++ b/njs/njs.c	Tue Jan 08 05:02:20 2019 +0800
@@ -479,14 +479,10 @@ njs_vm_call(njs_vm_t *vm, njs_function_t
         return ret;
     }
 
-    ret = njs_vmcode_interpreter(vm);
+    ret = njs_vm_start(vm);
 
     vm->current = current;
 
-    if (ret == NJS_STOP) {
-        ret = NXT_OK;
-    }
-
     return ret;
 }
 


More information about the nginx-devel mailing list