Upgrade to Node v6

This commit is contained in:
Cheng Zhao 2016-05-10 11:05:42 +09:00
parent 9c0f298064
commit 73223fe5c3
4 changed files with 4 additions and 3 deletions

View file

@ -63,7 +63,7 @@ float GetScaleFactorFromPath(const base::FilePath& path) {
// We don't try to convert string to float here because it is very very
// expensive.
for (unsigned i = 0; i < arraysize(kScaleFactorPairs); ++i) {
for (unsigned i = 0; i < node::arraysize(kScaleFactorPairs); ++i) {
if (base::EndsWith(filename, kScaleFactorPairs[i].name,
base::CompareCase::INSENSITIVE_ASCII))
return kScaleFactorPairs[i].scale;

View file

@ -21,6 +21,7 @@
#undef CHECK_LT
#undef DISALLOW_COPY_AND_ASSIGN
#undef NO_RETURN
#undef arraysize
#undef debug_string // This is defined in OS X 10.9 SDK in AssertMacros.h.
#include "vendor/node/src/env.h"
#include "vendor/node/src/env-inl.h"

View file

@ -53,7 +53,7 @@ v8::Local<v8::Uint8Array> BlinkUint8ArrayNew(
ab, mate::ConvertToV8(isolate, offset), mate::ConvertToV8(isolate, size)
};
return v8::Local<v8::Uint8Array>::Cast(constructor->NewInstance(
context, arraysize(args), args).ToLocalChecked());
context, node::arraysize(args), args).ToLocalChecked());
}
} // namespace

2
vendor/node vendored

@ -1 +1 @@
Subproject commit 6bcd8af891a991f8aa196e49e6bf908ebbe24cae
Subproject commit 7d119e77b9fe893d6e791c88c9e6122957e088ca