http://codereview.chromium.org/6673011/diff/23003/src/extensions/experimental/collator.cc
File src/extensions/experimental/collator.cc (right):

http://codereview.chromium.org/6673011/diff/23003/src/extensions/experimental/collator.cc#newcode77
src/extensions/experimental/collator.cc:77: return false;
I put up a test page at http://www.i18nl10n.com/chrome/colltest.html

When I open it, no exception is caught with this. So, try_catch lines
are no-op here.

On the other hand, value is indeed empty for ignoreAccents (whcih is set
to a function throwing an exception 42).  So, this function just return
false as if that option is not set. So far so good.

However, down the road at line 179, an exception is thrown. I'll add
more there.

http://codereview.chromium.org/6673011/diff/23003/src/extensions/experimental/collator.cc#newcode179
src/extensions/experimental/collator.cc:179:
v8::Local<v8::FunctionTemplate>
raw_template(v8::FunctionTemplate::New());
Here I got an console message about an uncaught exception:

4984:2575:705643956858483:INFO:CONSOLE(0)] "Uncaught 42," source:
http://www.corp.google.com/~jungshik/chrome/colltest.html (7)

colltest.html line 7 is where ignoreAccents is set to a function
throwing 42 exception with __defineGetter__.

7: options.__defineGetter__("ignoreAccents", function() { throw 42; });
8: var coll = locale.createCollator(options);

When I ignore and goes on in a debugger, eventually, at line 200,
renderer crashes.

200: collator_template_->GetFunction()->NewInstance()

Actual crash seems to happen in api.cc::3610 (has_pending_exception is
true there).

Maybe, I can catch an exception at line 179. But, I wonder why one is
thrown there (which just makes a new function template).

http://codereview.chromium.org/6673011/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to