Issue #1257 - Part 2: Remove watch/unwatch and JS watchpoint class.

This commit is contained in:
wolfbeast 2019-10-27 02:51:11 +02:00 committed by Roy Tam
commit ca9e376e55
25 changed files with 65 additions and 677 deletions

View file

@ -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;
}