Bug 911806 - Disable assignment operator and copy constructor of CompileError. r=billm

This commit is contained in:
Benjamin Peterson 2013-09-02 14:44:04 -04:00
parent cad644ddfe
commit c50020859b

View File

@ -317,6 +317,12 @@ struct CompileError {
}
~CompileError();
void throwError(JSContext *cx);
private:
// CompileError owns raw allocated memory, so disable assignment and copying
// for safety.
void operator=(const CompileError &) MOZ_DELETE;
CompileError(const CompileError &) MOZ_DELETE;
};
// Ideally, tokenizing would be entirely independent of context. But the