[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9749: trap error if instanceOf() is
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9749: trap error if instanceOf() is passed a null pointer. This should be fixed, but now test cases actually finish. |
Date: |
Tue, 19 May 2009 09:21:07 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 9749
committer: address@hidden
branch nick: avm2
timestamp: Tue 2009-05-19 09:21:07 -0600
message:
trap error if instanceOf() is passed a null pointer. This should be fixed,
but now test cases actually finish.
modified:
libcore/as_object.cpp
=== modified file 'libcore/as_object.cpp'
--- a/libcore/as_object.cpp 2009-05-15 03:20:50 +0000
+++ b/libcore/as_object.cpp 2009-05-19 15:21:07 +0000
@@ -840,6 +840,12 @@
{
//#define GNASH_DEBUG_INSTANCE_OF 1
+ if (!ctor) {
+ log_error("%s: ctor shouldn't be zero!", __PRETTY_FUNCTION__);
+ return false;
+ }
+
+
as_value protoVal;
if ( ! ctor->get_member(NSV::PROP_PROTOTYPE, &protoVal) )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9749: trap error if instanceOf() is passed a null pointer. This should be fixed, but now test cases actually finish.,
rob <=