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

Fix delete mw.command.foo

parent 0d769674
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}