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
Родитель cad644ddfe
Коммит c50020859b
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -317,6 +317,12 @@ struct CompileError {
} }
~CompileError(); ~CompileError();
void throwError(JSContext *cx); 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 // Ideally, tokenizing would be entirely independent of context. But the