[INFER] Always ensure XDR'd scripts have a shape, bug 649103.

This commit is contained in:
Brian Hackett 2011-04-11 16:39:29 -07:00
parent be364cb797
commit 6c6b5d6f3a

View File

@ -452,13 +452,13 @@ js_XDRScript(JSXDRState *xdr, JSScript **scriptp)
return false;
}
}
}
if (xdr->mode == JSXDR_DECODE) {
if (!bindings.ensureShape(cx))
return false;
bindings.makeImmutable();
}
}
if (xdr->mode == JSXDR_ENCODE)
length = script->length;