mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 837418 - Fix silly mistake when dealing with OOM under str_concat, r=terrence.
This commit is contained in:
parent
7153c2e7ee
commit
54aa8e3c4c
@ -3074,8 +3074,10 @@ str_concat(JSContext *cx, unsigned argc, Value *vp)
|
||||
str = strRoot;
|
||||
}
|
||||
|
||||
str = ConcatStrings<NoGC>(cx, str, argStr);
|
||||
if (!str) {
|
||||
JSString *next = ConcatStrings<NoGC>(cx, str, argStr);
|
||||
if (next) {
|
||||
str = next;
|
||||
} else {
|
||||
RootedString strRoot(cx, str), argStrRoot(cx, argStr);
|
||||
str = ConcatStrings<CanGC>(cx, strRoot, argStrRoot);
|
||||
if (!str)
|
||||
|
Loading…
Reference in New Issue
Block a user