diff options
| author | Eleanor Eng <eleanor_eng@brown.edu> | 2019-06-10 11:53:14 -0400 |
|---|---|---|
| committer | Eleanor Eng <eleanor_eng@brown.edu> | 2019-06-10 11:53:14 -0400 |
| commit | a0e4da3339d994ebb31463e7725982db55f794fa (patch) | |
| tree | a26f4ed1c4442ee94bfb9799aed1778564fd353c /src/new_fields/Doc.ts | |
| parent | 23208f830ffcf3e5a43db2da69f645746d03852b (diff) | |
| parent | a2742057084ac0c78ed5f360b1078b5b267eff1f (diff) | |
merge with master
Diffstat (limited to 'src/new_fields/Doc.ts')
| -rw-r--r-- | src/new_fields/Doc.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 7f7263cf1..7e02a5bc5 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -211,13 +211,11 @@ export namespace Doc { return Array.from(results); } - export function MakeAlias(doc: Doc) { - const alias = new Doc; if (!GetT(doc, "isPrototype", "boolean", true)) { - alias.proto = doc.proto; + return Doc.MakeCopy(doc); } - return alias; + return new Doc; } export function MakeCopy(doc: Doc, copyProto: boolean = false): Doc { |
