Browse Source

remove incorrect arguments object accessor assertion, broken test-arguments-magic-delete

pull/1/head
Sami Vaarala 11 years ago
parent
commit
81fe559128
  1. 8
      src/duk_hobject_props.c

8
src/duk_hobject_props.c

@ -1443,8 +1443,12 @@ static int get_own_property_desc_raw(duk_hthread *thr, duk_hobject *obj, duk_hst
push_value) {
duk_propdesc temp_desc;
/* magically bound variable cannot be an accessor */
DUK_ASSERT((out_desc->flags & DUK_PROPDESC_FLAG_ACCESSOR) == 0);
/* Magically bound variable cannot be an accessor. However,
* there may be an accessor property (or a plain property) in
* place with magic behavior removed. This happens e.g. when
* a magic property is redefined with defineProperty().
* Cannot assert for "not accessor" here.
*/
/* replaces top of stack with new value if necessary */
DUK_ASSERT(push_value != 0);

Loading…
Cancel
Save