Bug 110243
Summary: | [V8] ToNumber conversions in toIntXX() functions need try-catch block | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joshua Bell <jsbell> |
Component: | New Bugs | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |