Bug 110243

Summary: [V8] ToNumber conversions in toIntXX() functions need try-catch block
Product: WebKit Reporter: Joshua Bell <jsbell>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: code.vineet
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 96798, 101783    
Bug Blocks:    

Joshua Bell
Reported 2013-02-19 11:33:36 PST
CodeGeneratorV8.pm relies on e.g. toInt32 for coercing arguments to WebIDL long types in JSValueToNative. toInt32 calls value->ToNumber(), which may throw but in general this call is not wrapped in a v8::tryCatch block. e.g.: someObj.someLongMethod( { valueOf: function() { throw "boom"; } } );
Attachments
Note You need to log in before you can comment on or make changes to this bug.