Code: Select all
33:22.43 In file included from /platform/js/src/builtin/intl/CommonFunctions.cpp:8:
33:22.43 /platform/js/src/builtin/intl/CommonFunctions.h: In function ‘JSString* js::intl::CallICU(JSContext*, const ICUStringFunction&)’:
33:22.44 /platform/js/src/builtin/intl/CommonFunctions.h:119:33: error: no matching function for call to ‘NewStringCopyN<js::CanGC>(JSContext*&, char16_t*, size_t)’
33:22.44 119 | return NewStringCopyN<CanGC>(cx, chars.begin(), size_t(size));
33:22.44 | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33:22.44 In file included from /platform/js/src/builtin/intl/CommonFunctions.h:19,
33:22.44 from /platform/js/src/builtin/intl/CommonFunctions.cpp:8:
33:22.44 /platform/js/src/vm/String.h:1261:1: note: candidate: ‘template<js::AllowGC allowGC, class CharT> JSFlatString* js::NewStringCopyN(js::ExclusiveContext*, const CharT*, size_t)’
33:22.44 1261 | NewStringCopyN(js::ExclusiveContext* cx, const CharT* s, size_t n);
33:22.44 | ^~~~~~~~~~~~~~
33:22.44 /platform/js/src/vm/String.h:1261:1: note: template argument deduction/substitution failed:
33:22.44 In file included from /platform/js/src/builtin/intl/CommonFunctions.cpp:8:
33:22.44 /platform/js/src/builtin/intl/CommonFunctions.h:119:34: note: cannot convert ‘cx’ (type ‘JSContext*’) to type ‘js::ExclusiveContext*’
33:22.44 119 | return NewStringCopyN<CanGC>(cx, chars.begin(), size_t(size));
33:22.44 | ^~
33:22.44 In file included from /platform/js/src/builtin/intl/CommonFunctions.h:19,
33:22.44 from /platform/js/src/builtin/intl/CommonFunctions.cpp:8:
33:22.44 /platform/js/src/vm/String.h:1265:1: note: candidate: ‘JSFlatString* js::NewStringCopyN(js::ExclusiveContext*, const char*, size_t) [with js::AllowGC allowGC = js::CanGC; size_t = unsigned int]’
33:22.44 1265 | NewStringCopyN(ExclusiveContext* cx, const char* s, size_t n)
33:22.44 | ^~~~~~~~~~~~~~
33:22.45 /platform/js/src/vm/String.h:1265:34: note: no known conversion for argument 1 from ‘JSContext*’ to ‘js::ExclusiveContext*’
33:22.45 1265 | NewStringCopyN(ExclusiveContext* cx, const char* s, size_t n)
33:22.45 | ~~~~~~~~~~~~~~~~~~^~
Fixed this by adding #include "jscntxt.h" header to the /platform/js/src/builtin/intl/CommonFunctions.h file but i still wonder - is it a source code bug or something from my side?
Related commit: https://repo.palemoon.org/MoonchildProd ... 95c608bf3c
"Issue #2046 - Create helper method to call ICU string conversion methods"
Does anyone else tried to compile this browser from git after this commit, on linux and using GCC?