Copy options when cloning metadata

This commit is contained in:
murgatroid99 2020-01-08 16:32:50 -08:00
parent 3a1470ed80
commit 596232675e
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ export class Metadata {
* @return The newly cloned object.
*/
clone(): Metadata {
const newMetadata = new Metadata();
const newMetadata = new Metadata(this.options);
const newInternalRepr = newMetadata.internalRepr;
this.internalRepr.forEach((value, key) => {