[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_fi
From: |
Richard Wilbur |
Subject: |
Re: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2247-g6671ff0 |
Date: |
Mon, 18 Jan 2016 02:25:58 -0700 |
On Tue, Jan 12, 2016 at 5:58 AM, Sandro Santilli <address@hidden> wrote:
[...]
> diff --git a/libcore/movie_root.cpp b/libcore/movie_root.cpp
> index 3c643e9..c9ce412 100644
> --- a/libcore/movie_root.cpp
> +++ b/libcore/movie_root.cpp
> @@ -1602,7 +1602,7 @@ movie_root::processInvoke(ExternalInterface::invoke_t
> *invoke)
> // If the variable exists, GetVariable returns a string
> // representation of its value. Variable with undefined
> // or null value counts as exist too.
> - ss << ExternalInterface::toXML(val.to_string());
> + ss <<
> ExternalInterface::toXML(val.to_string(_vm.getSWFVersion()));
> ss << std::endl;
> } else {
> // If the variable does not exist, GetVariable sends null value
So I see the change of the invocation of val.to_string() to include
the SWF version but where is the change in the to_string() method to
accept the SWF version and return empty string for 'undefined' val
when version < 7, otherwise for 'undefined' val return 'undefined'?