[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #46719] Gnash's `GetVariable()` returns incorrect va

From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #46719] Gnash's `GetVariable()` returns incorrect value of undefined variable under SWF5
Date: Mon, 11 Jan 2016 07:36:40 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.5) Gecko/20150606 Firefox/31.9 PaleMoon/25.5.0

Follow-up Comment #2, bug #46719 (project gnash):

I have created a new test which checks `GetVariable()` on undefined
(unassigned) and nonexistent variable within SWF version 5-8 under Flash

* Under SWF 5-6, `undefined` value translates to an empty string.
* Under SWF 7-8, `undefined` value translates to a string "undefined".

This is consistent to Adobe's documentation regarding `undefined` value
and Gnash's `as_value::to_string()` documentation
and also means that
current automated test must also be corrected so that expected value from
undefined/unassigned variable SWF6 is the same as SWF5.

variable-v5's string_variable: type=string, value=Hello!
variable-v5's unassigned_variable: type=string, value=
variable-v5's nonexistent_variable: type=object, value=null
variable-v6's string_variable: type=string, value=Hello!
variable-v6's unassigned_variable: type=string, value=
variable-v6's nonexistent_variable: type=object, value=null
variable-v7's string_variable: type=string, value=Hello!
variable-v7's unassigned_variable: type=string, value=undefined
variable-v7's nonexistent_variable: type=object, value=null
variable-v8's string_variable: type=string, value=Hello!
variable-v8's unassigned_variable: type=string, value=undefined
variable-v8's nonexistent_variable: type=object, value=null

Test SWF, source code, build script, HTML container, text output
and screenshot are attached as `` for reference.

Flash Player: 11.2 r202 ( NPAPI binary
Browser: Iceweasel 10.0.12 (debian)
System: Debian GNU/Linux 7.0 Wheezy i386

(file #35985)

Additional Item Attachment:

File name:         Size:6 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]