Bug 83534

Summary: If a callback function returns a C++ null, convert to undefined.
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Gavin Barraclough <barraclough>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix ggaren: review+

Gavin Barraclough
Reported 2012-04-09 18:38:28 PDT
Previously we didn't check for NULL return values here, recently we hardened the API to throw an error, but this is too restrictive for some clients. Instead just promote to a JS undefined.
Attachments
Fix (3.02 KB, patch)
2012-04-09 18:39 PDT, Gavin Barraclough
ggaren: review+
Gavin Barraclough
Comment 1 2012-04-09 18:39:12 PDT
Geoffrey Garen
Comment 2 2012-04-09 18:40:13 PDT
Comment on attachment 136364 [details] Fix r=me
Gavin Barraclough
Comment 3 2012-04-09 18:41:41 PDT
Fixed in r113654
Note You need to log in before you can comment on or make changes to this bug.