From 0f6a81713f2ffad5c883f4039e4721894d452f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marja=20H=C3=B6ltt=C3=A4?= Date: Wed, 17 Oct 2018 11:09:22 +0200 Subject: [PATCH] Update spec.md: WeakFactory ctor fix WeakFactory constructor: Always set [[ActiveCells]] to an empty list (we add to it later). --- specs/spec.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/spec.md b/specs/spec.md index 999fc4e..c46342c 100644 --- a/specs/spec.md +++ b/specs/spec.md @@ -25,10 +25,9 @@ When WeakFactory is called with argument _cleanup_, it performs the following st 1. Let _O_ be ? OrdinaryCreateFromConstructor(NewTarget, "%WeakFactoryPrototype%", « [[WeakFactory]] »). 1. If _cleanup_ is *undefined*, then 1. Set _O_.[[Cleanup]] to undefined. - 1. Set _O_[[ActiveCells]] to undefined. 1. Else 1. Set _O_.[[Cleanup]] to _cleanup_. - 1. Set _O_[[ActiveCells]] to a new empty List. +1. Set _O_.[[ActiveCells]] to a new empty List. 1. Set _O_.[[HasDirty]] to false. 1. Perform ! RegisterWeakFactory(_O_). 1. Return _O_