mirror of
https://github.com/servo/servo.git
synced 2025-06-16 04:14:29 +00:00
Report exceptions to JS when the DOM implementation fails.
As a bonus, adds some debugging statements.
This commit is contained in:
parent
c5db2ab516
commit
29a7405b4e
4 changed files with 24 additions and 6 deletions
|
@ -3107,11 +3107,10 @@ class CGPerSignatureCall(CGThing):
|
|||
self.idlNode.identifier.name))
|
||||
|
||||
def getErrorReport(self):
|
||||
#return CGGeneric('return ThrowMethodFailedWithDetails<%s>(cx, rv, "%s", "%s");'
|
||||
# % (toStringBool(not self.descriptor.workers),
|
||||
# self.descriptor.interface.identifier.name,
|
||||
# self.idlNode.identifier.name))
|
||||
return CGGeneric('return 0'); #XXXjdm
|
||||
return CGGeneric(
|
||||
'return throw_method_failed_with_details(cx, result_fallible, "%s", "%s");' %
|
||||
(self.descriptor.interface.identifier.name,
|
||||
self.idlNode.identifier.name))
|
||||
|
||||
def define(self):
|
||||
return (self.cgRoot.define() + "\n" + self.wrap_return_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue