gnash-commit
[Top][All Lists]
Advanced

[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
Player:

* 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
<http://help.adobe.com/en_US/AS2LCR/Flash_10.0/00000549.html>
and Gnash's `as_value::to_string()` documentation
<http://git.savannah.gnu.org/cgit/gnash.git/tree/libcore/as_value.h?id=15d61a804138737764689338c491c41f2cf59acf#n228>,
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:
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:
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:
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:
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 `getvariable-allver.zip` for reference.

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

(file #35985)
    _______________________________________________________

Additional Item Attachment:

File name: getvariable-allver.zip         Size:6 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46719>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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