mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 911806 - Disable assignment operator and copy constructor of CompileError. r=billm
This commit is contained in:
parent
cad644ddfe
commit
c50020859b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user