Followup fix for broken changeset 7fe5fb2450f4.

This commit is contained in:
Chris Leary
2011-05-16 18:39:59 -07:00
parent 2e19f41a7a
commit 5e45cbfdc7
2 changed files with 3 additions and 3 deletions

View File

@@ -528,7 +528,7 @@ js_AtomizeString(JSContext *cx, JSString *str, InternBehavior ib)
AtomSet::Ptr p = atoms.lookup(AtomHasher::Lookup(&atom));
JS_ASSERT(p); /* Non-static atom must exist in atom state set. */
JS_ASSERT(p->toAtom() == &atom);
JS_ASSERT(ib == Intern);
JS_ASSERT(ib == InternAtom);
MakeInterned(lock, *p, ib);
return &atom;
}
@@ -620,7 +620,7 @@ js_DumpAtoms(JSContext *cx, FILE *fp)
AtomStateEntry entry = r.front();
fprintf(fp, "%3u ", number++);
JSAtom *key = entry.toAtom();
FileEscapeString(fp, key, '"');
FileEscapedString(fp, key, '"');
if (entry.isInterned())
fputs(" interned", fp);
putc('\n', fp);