gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [bug #47354] `Function.call(null)` and `Function.call(und


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #47354] `Function.call(null)` and `Function.call(undefined)` provided an incorrect `this` instance
Date: Tue, 08 Mar 2016 15:20:40 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.8) Gecko/20151123 Firefox/31.9 PaleMoon/25.8.1

Follow-up Comment #4, bug #47354 (project gnash):

Patch included, see patch #8935.

This is debug output (verbosity 1) of `fncall-nothis-rev2-v7.swf` with patched
Gnash:

115 SECURITY: Checking security of URL
'file:///mnt/gnashdev/fncall-nothis/fncall-nothis-rev2/fncall-nothis-rev2-v7.swf'
115 SECURITY: Load of file
/mnt/gnashdev/fncall-nothis/fncall-nothis-rev2/fncall-nothis-rev2-v7.swf
granted (under local sandbox /mnt/gnashdev/fncall-nothis/fncall-nothis-rev2/)
151 SECURITY: Extensions disabled
151 TRACE: PASSED: _global object should be an object type
151 TRACE: PASSED: _global object should be equal to undefined value
152 TRACE: PASSED: _global object should be equal to null value
152 TRACE: PASSED: Appending _global object to empty string should give
"undefined" string
152 TRACE: PASSED: _global object should not be strictly equal to undefined
value
152 TRACE: PASSED: _global object should not be strictly equal to null value
152 TRACE: PASSED: this pointer inside fn_nothis should be an object type
152 TRACE: PASSED: this pointer inside fn_nothis should be equal to undefined
value
152 TRACE: PASSED: this pointer inside fn_nothis should be equal to null
value
152 TRACE: PASSED: Appending this pointer inside fn_nothis to empty string
should give "undefined" string
152 TRACE: PASSED: this pointer inside fn_nothis should not be strictly equal
to undefined value
152 TRACE: PASSED: this pointer inside fn_nothis should not be strictly equal
to null value
152 TRACE: PASSED: this pointer inside fn_nothis should be strictly equal to
_global object
153 TRACE: PASSED: this pointer inside fn_nullthis should be an object type
153 TRACE: PASSED: this pointer inside fn_nullthis should be equal to
undefined value
153 TRACE: PASSED: this pointer inside fn_nullthis should be equal to null
value
153 TRACE: PASSED: Appending this pointer inside fn_nullthis to empty string
should give "undefined" string
153 TRACE: PASSED: this pointer inside fn_nullthis should not be strictly
equal to undefined value
153 TRACE: PASSED: this pointer inside fn_nullthis should not be strictly
equal to null value
153 TRACE: PASSED: this pointer inside fn_nullthis should be strictly equal to
_global object
153 TRACE: PASSED: this pointer inside fn_undefinedthis should be an object
type
153 TRACE: PASSED: this pointer inside fn_undefinedthis should be equal to
undefined value
153 TRACE: PASSED: this pointer inside fn_undefinedthis should be equal to
null value
153 TRACE: PASSED: Appending this pointer inside fn_undefinedthis to empty
string should give "undefined" string
153 TRACE: PASSED: this pointer inside fn_undefinedthis should not be strictly
equal to undefined value
153 TRACE: PASSED: this pointer inside fn_undefinedthis should not be strictly
equal to null value
154 TRACE: PASSED: this pointer inside fn_undefinedthis should be strictly
equal to _global object
154 TRACE: PASSED: _global.nothis_value should be set to the correct value
154 TRACE: PASSED: _global.nullthis_value should be set to the correct value
154 TRACE: PASSED: _global.undefinedthis_value should be set to the correct
value
154 TRACE: PASSED: There should be 30 tests run


This is debug output (verbosity 1) of `fnapply-nothis-rev2-v7.swf` with
patched Gnash:

116 SECURITY: Checking security of URL
'file:///mnt/gnashdev/fncall-nothis/fnapply-nothis-rev2/fnapply-nothis-rev2-v7.swf'
116 SECURITY: Load of file
/mnt/gnashdev/fncall-nothis/fnapply-nothis-rev2/fnapply-nothis-rev2-v7.swf
granted (under local sandbox
/mnt/gnashdev/fncall-nothis/fnapply-nothis-rev2/)
160 SECURITY: Extensions disabled
161 TRACE: PASSED: _global object should be an object type
161 TRACE: PASSED: _global object should be equal to undefined value
161 TRACE: PASSED: _global object should be equal to null value
162 TRACE: PASSED: Appending _global object to empty string should give
"undefined" string
162 TRACE: PASSED: _global object should not be strictly equal to undefined
value
162 TRACE: PASSED: _global object should not be strictly equal to null value
162 ACTIONSCRIPT ERROR: Function.apply() called with no args
162 TRACE: PASSED: this pointer inside fn_nothis should be an object type
163 TRACE: PASSED: this pointer inside fn_nothis should be equal to undefined
value
163 TRACE: PASSED: this pointer inside fn_nothis should be equal to null
value
163 TRACE: PASSED: Appending this pointer inside fn_nothis to empty string
should give "undefined" string
163 TRACE: PASSED: this pointer inside fn_nothis should not be strictly equal
to undefined value
163 TRACE: PASSED: this pointer inside fn_nothis should not be strictly equal
to null value
163 TRACE: PASSED: this pointer inside fn_nothis should be strictly equal to
_global object
164 TRACE: PASSED: this pointer inside fn_nullthis should be an object type
164 TRACE: PASSED: this pointer inside fn_nullthis should be equal to
undefined value
164 TRACE: PASSED: this pointer inside fn_nullthis should be equal to null
value
164 TRACE: PASSED: Appending this pointer inside fn_nullthis to empty string
should give "undefined" string
164 TRACE: PASSED: this pointer inside fn_nullthis should not be strictly
equal to undefined value
165 TRACE: PASSED: this pointer inside fn_nullthis should not be strictly
equal to null value
165 TRACE: PASSED: this pointer inside fn_nullthis should be strictly equal to
_global object
165 TRACE: PASSED: this pointer inside fn_undefinedthis should be an object
type
165 TRACE: PASSED: this pointer inside fn_undefinedthis should be equal to
undefined value
165 TRACE: PASSED: this pointer inside fn_undefinedthis should be equal to
null value
165 TRACE: PASSED: Appending this pointer inside fn_undefinedthis to empty
string should give "undefined" string
166 TRACE: PASSED: this pointer inside fn_undefinedthis should not be strictly
equal to undefined value
166 TRACE: PASSED: this pointer inside fn_undefinedthis should not be strictly
equal to null value
166 TRACE: PASSED: this pointer inside fn_undefinedthis should be strictly
equal to _global object
166 TRACE: PASSED: _global.nothis_value should be set to the correct value
166 TRACE: PASSED: _global.nullthis_value should be set to the correct value
167 TRACE: PASSED: _global.undefinedthis_value should be set to the correct
value
167 TRACE: PASSED: There should be 30 tests run


You'd see that tests are now giving all-PASSED result. (Other version of test
SWFs in both test case are also giving all PASSED result too)

Gnash: 0.8.11dev (patched against git 8b33692 7-Mar-2016)
System: Debian GNU/Linux 7.0 Wheezy i386

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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