[#29] Re-added interface name to interface errors since abstract requirement change
parent
a33df4dcbe
commit
87dd1b8961
|
@ -209,6 +209,8 @@ var extend = ( function( extending )
|
||||||
|
|
||||||
var new_interface = createInterface( iname );
|
var new_interface = createInterface( iname );
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
util.propParse( props, {
|
util.propParse( props, {
|
||||||
assumeAbstract: true,
|
assumeAbstract: true,
|
||||||
|
|
||||||
|
@ -239,6 +241,17 @@ var extend = ( function( extending )
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
|
catch ( e )
|
||||||
|
{
|
||||||
|
// alter the message to include our name
|
||||||
|
e.message = "Failed to define interface " +
|
||||||
|
( ( iname ) ? iname : '(anonymous)' ) + ": " + e.message
|
||||||
|
;
|
||||||
|
|
||||||
|
// re-throw
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
attachExtend( new_interface );
|
attachExtend( new_interface );
|
||||||
attachStringMethod( new_interface, iname );
|
attachStringMethod( new_interface, iname );
|
||||||
|
|
Loading…
Reference in New Issue