~ubuntu-branches/ubuntu/quantal/elinks/quantal

« back to all changes in this revision

Viewing changes to src/ecmascript/spidermonkey/navigator.c

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals (RainCT)
  • Date: 2008-02-01 16:29:06 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080201162906-xdourui5tyjva0al
Tags: 0.11.3-5ubuntu1
 
* Merge from Debian unstable (LP: #187936); remaining changes:
  - Add X-Ubuntu-Gettext-Domain to .desktop files.
  - debian/control: Maintainer field update.
* Improve the text in the .desktop file and add some translations.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
};
76
76
 
77
77
 
 
78
/* @navigator_class.getProperty */
78
79
static JSBool
79
80
navigator_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
80
81
{
133
134
        }
134
135
                break;
135
136
        default:
136
 
                INTERNAL("Invalid ID %d in navigator_get_property().", JSVAL_TO_INT(id));
 
137
                /* Unrecognized property ID; someone is using the
 
138
                 * object as an array.  SMJS builtin classes (e.g.
 
139
                 * js_RegExpClass) just return JS_TRUE in this case
 
140
                 * and leave *@vp unchanged.  Do the same here.
 
141
                 * (Actually not quite the same, as we already used
 
142
                 * @undef_to_jsval.)  */
137
143
                break;
138
144
        }
139
145