return NJS_ERROR;
}
- if (slots != NULL) {
- prop->writable = slots->writable;
- prop->configurable = slots->configurable;
- prop->enumerable = slots->enumerable;
- }
+ prop->writable = self->writable;
+ prop->configurable = self->configurable;
+ prop->enumerable = self->enumerable;
lhq.value = prop;
njs_string_get(&self->name, &lhq.key);
{ njs_str("let buf = new Uint32Array(4);"
"buf === crypto.getRandomValues(buf)"),
njs_str("true") },
+
+ { njs_str("crypto.subtle;"
+ "var d = Object.getOwnPropertyDescriptor(crypto, 'subtle');"
+ "d.enumerable && !d.configurable && d.writable"),
+ njs_str("true") },
};