~ubuntu-branches/ubuntu/saucy/gjs/saucy-proposed

« back to all changes in this revision

Viewing changes to gjs/jsapi-util-error.c

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2013-07-30 09:15:40 UTC
  • mfrom: (1.10.9)
  • Revision ID: package-import@ubuntu.com-20130730091540-7hk361n8pbliyfn2
Tags: 1.37.4-0ubuntu1
* New upstream release (LP: #1205971)
* debian/control.in:
  - Bump b-d on gobject-instropection
  - Build-depend on mozjs17 instead of mozjs
  - Bump library packages to libgjs0d (for mozjs17 transition)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        goto out;
83
83
    }
84
84
 
85
 
    if (!gjs_object_get_property(context, JS_GetGlobalObject(context),
86
 
                                 error_class, &v_constructor)) {
 
85
    if (!JS_GetProperty(context, JS_GetGlobalObject(context),
 
86
                        error_class, &v_constructor) ||
 
87
        !JSVAL_IS_OBJECT(v_constructor)) {
87
88
        JS_ReportError(context, "??? Missing Error constructor in global object?");
88
89
        goto out;
89
90
    }