Commit 4dd8cd35 authored by Andrew Price's avatar Andrew Price

Fix delete mw.command.foo

parent 0d769674
Pipeline #510 passed with stage
in 7 minutes and 38 seconds
......@@ -1149,7 +1149,7 @@ static duk_ret_t js_command_set(duk_context *cx)
duk_push_this(cx); /* Target object */
duk_dup(cx, 1); /* Command name */
duk_dup(cx, 2); /* Handler */
duk_def_prop(cx, -3, DUK_DEFPROP_HAVE_VALUE);
duk_def_prop(cx, -3, DUK_DEFPROP_HAVE_VALUE|DUK_DEFPROP_SET_CONFIGURABLE);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment