| 1025 | } |
| 1026 | |
| 1027 | static JSValue js_std_unsetenv(JSContext *ctx, JSValueConst this_val, |
| 1028 | int argc, JSValueConst *argv) |
| 1029 | { |
| 1030 | const char *name; |
| 1031 | name = JS_ToCString(ctx, argv[0]); |
| 1032 | if (!name) |
| 1033 | return JS_EXCEPTION; |
| 1034 | unsetenv(name); |
| 1035 | JS_FreeCString(ctx, name); |
| 1036 | return JS_UNDEFINED; |
| 1037 | } |
| 1038 | |
| 1039 | /* return an object containing the list of the available environment |
| 1040 | variables. */ |
nothing calls this directly
no test coverage detected