Bug 609440, part 2 - do lazy allocation, dag-ify ropes (assume no oom) (r=njn)
This commit is contained in:
@@ -514,7 +514,7 @@ js_AtomizeString(JSContext *cx, JSString *str, uintN flags)
|
||||
|
||||
/* Finish handing off chars to the GC'ed key string. */
|
||||
JS_ASSERT(flags & ATOM_TMPSTR);
|
||||
str->mChars = NULL;
|
||||
str->u.chars = NULL;
|
||||
} else {
|
||||
key = js_NewStringCopyN(cx, chars, length);
|
||||
if (!key)
|
||||
|
||||
Reference in New Issue
Block a user