[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10039: More tests for ExternalI
From: |
strk |
Subject: |
Re: [Gnash-commit] /srv/bzr/gnash/trunk r10039: More tests for ExternalInterface. |
Date: |
Tue, 21 Oct 2008 23:18:32 +0200 |
On Tue, Oct 21, 2008 at 06:35:28PM +0200, Benjamin Wolsey wrote:
> +// An object with circular references
> +oc = {};
> +oc.a = {};
> +oc.a.a = oc.b;
> +oc.b = oc.a;
There's no circular ref above. There are two references to the
same object (oc.a aka oc.b) but no circularity (oc.b was undefined
at time of assignment to oc.a.a).
Simpler:
oc = {};
oc.a = {}; // obj A
oc.b = {}; // obj B
oc.a.r = oc.b; // obj A refers to obj B
oc.b.r = oc.a; // obj B refers to obj A
--strk;