diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-27 02:51:11 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-27 02:51:11 +0200 |
commit | 44a077980abb92dcea9ed374fd9719eaaf2f1458 (patch) | |
tree | dc262274ecda4799835232951bdb160b9a7b7d0e /js/src/vm/NativeObject-inl.h | |
parent | c59c9682d351e641f184e1f8095f399fee179f62 (diff) | |
download | UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.gz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.lz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.tar.xz UXP-44a077980abb92dcea9ed374fd9719eaaf2f1458.zip |
Issue #1257 - Part 2: Remove watch/unwatch and JS watchpoint class.
Diffstat (limited to 'js/src/vm/NativeObject-inl.h')
-rw-r--r-- | js/src/vm/NativeObject-inl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/vm/NativeObject-inl.h b/js/src/vm/NativeObject-inl.h index e55e3db04..030d92c12 100644 --- a/js/src/vm/NativeObject-inl.h +++ b/js/src/vm/NativeObject-inl.h @@ -158,11 +158,11 @@ NativeObject::extendDenseElements(ExclusiveContext* cx, MOZ_ASSERT(!denseElementsAreFrozen()); /* - * Don't grow elements for non-extensible objects or watched objects. Dense - * elements can be added/written with no extensible or watchpoint checks as - * long as there is capacity for them. + * Don't grow elements for non-extensible objects. Dense elements can be + * added/written with no extensible checks as long as there is capacity + * for them. */ - if (!nonProxyIsExtensible() || watched()) { + if (!nonProxyIsExtensible()) { MOZ_ASSERT(getDenseCapacity() == 0); return DenseElementResult::Incomplete; } |