https://codereview.chromium.org/1162363005/diff/20001/src/accessors.cc
File src/accessors.cc (right):

https://codereview.chromium.org/1162363005/diff/20001/src/accessors.cc#newcode1416
src/accessors.cc:1416: }
On 2015/06/03 at 08:23:13, vogelheim wrote:
I don't think I understand the logic here:

Previously, if info.Data() didn't contain a valid slot number, if
would run into the DCHECK in FixedArray::get. I presume that in release
builds, it would just wildly access memory. Apparently, this code
assumed that surely the slot number would be valid.

This now checks for one specific error condition, namely no slot
number being given at all, but all other error conditions are still
unchecked. Why? If we assume it's the caller responsibility to provide
valid data, then why handle this particular situation?

fair enough

i'm now checking for other invalid values as well

https://codereview.chromium.org/1162363005/diff/20001/src/api.cc
File src/api.cc (right):

https://codereview.chromium.org/1162363005/diff/20001/src/api.cc#newcode325
src/api.cc:325: .ToLocal(&resource_name)) {
On 2015/06/03 at 08:23:13, vogelheim wrote:
How could this NewFromUtf8 call fail?

it can't. Made it ToLocalChecked()

https://codereview.chromium.org/1162363005/diff/20001/src/extensions/gc-extension.cc
File src/extensions/gc-extension.cc (right):

https://codereview.chromium.org/1162363005/diff/20001/src/extensions/gc-extension.cc#newcode23
src/extensions/gc-extension.cc:23:
->BooleanValue(args.GetIsolate()->GetCurrentContext())
On 2015/06/03 at 08:23:13, vogelheim wrote:
style nitpick: Why newline + 8 indent?

clang-format

https://codereview.chromium.org/1162363005/

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to