Stream: introduced "stream" property.

Is an alias to $status variable.
diff --git a/nginx/ngx_js.c b/nginx/ngx_js.c
index e87b825..64db047 100644
--- a/nginx/ngx_js.c
+++ b/nginx/ngx_js.c
@@ -186,6 +186,27 @@
 
 
 njs_int_t
+ngx_js_ext_uint(njs_vm_t *vm, njs_object_prop_t *prop, njs_value_t *value,
+    njs_value_t *setval, njs_value_t *retval)
+{
+    char        *p;
+    ngx_uint_t   field;
+
+    p = njs_vm_external(vm, value);
+    if (p == NULL) {
+        njs_value_undefined_set(retval);
+        return NJS_DECLINED;
+    }
+
+    field = *(ngx_uint_t *) (p + njs_vm_prop_magic32(prop));
+
+    njs_value_number_set(retval, field);
+
+    return NJS_OK;
+}
+
+
+njs_int_t
 ngx_js_ext_constant(njs_vm_t *vm, njs_object_prop_t *prop,
     njs_value_t *value, njs_value_t *setval, njs_value_t *retval)
 {
diff --git a/nginx/ngx_js.h b/nginx/ngx_js.h
index bc80515..395c0a1 100644
--- a/nginx/ngx_js.h
+++ b/nginx/ngx_js.h
@@ -57,6 +57,8 @@
 
 njs_int_t ngx_js_ext_string(njs_vm_t *vm, njs_object_prop_t *prop,
     njs_value_t *value, njs_value_t *setval, njs_value_t *retval);
+njs_int_t ngx_js_ext_uint(njs_vm_t *vm, njs_object_prop_t *prop,
+    njs_value_t *value, njs_value_t *setval, njs_value_t *retval);
 njs_int_t ngx_js_ext_constant(njs_vm_t *vm, njs_object_prop_t *prop,
     njs_value_t *value, njs_value_t *setval, njs_value_t *retval);
 njs_int_t ngx_js_ext_boolean(njs_vm_t *vm, njs_object_prop_t *prop,
diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c
index 99ebfd4..f729edf 100644
--- a/nginx/ngx_stream_js_module.c
+++ b/nginx/ngx_stream_js_module.c
@@ -226,6 +226,16 @@
 
     {
         .flags = NJS_EXTERN_PROPERTY,
+        .name.string = njs_str("status"),
+        .enumerable = 1,
+        .u.property = {
+            .handler = ngx_js_ext_uint,
+            .magic32 = offsetof(ngx_stream_session_t, status),
+        }
+    },
+
+    {
+        .flags = NJS_EXTERN_PROPERTY,
         .name.string = njs_str("remoteAddress"),
         .enumerable = 1,
         .u.property = {