Open GoogleCodeExporter opened 9 years ago
Before string "we will see" must be "$$ LANGUAGE plv8;"
Original comment by vovapjat...@gmail.com
on 28 Jan 2014 at 6:28
if I do this in one scope - I get right result
DO $$
this.dbError = function(message){
this.message = (message || '');
};
dbError.prototype = Error.prototype;
try{
var err = new dbError('this is a dbError');
err.someProp = 'lalala';
throw err;
} catch(ex){
plv8.elog(NOTICE, ex instanceof dbError);
plv8.elog(NOTICE, ex.message);
plv8.elog(NOTICE, ex.someProp);
}
$$ LANGUAGE plv8;
the result:
-----------------------
true
this is a dbError
lalala
Original comment by vovapjat...@gmail.com
on 28 Jan 2014 at 6:43
Original issue reported on code.google.com by
vovapjat...@gmail.com
on 28 Jan 2014 at 6:25