1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Construct new values.

This commit is contained in:
Rob Rix 2015-10-21 15:57:15 -04:00
parent 848f3ec654
commit 27f01cc43f

View File

@ -73,9 +73,9 @@
}
function patch(patch, a, b) {
if (patch.delete != null) { return Delete(term(patch.delete, a, b)); }
if (patch.insert != null) { return Insert(term(patch.insert, a, b)); }
if (patch.replace != null) { return Replace(term(patch.replace.before, a, b), term(patch.replace.after, a, b)); }
if (patch.delete != null) { return new Delete(term(patch.delete, a, b)); }
if (patch.insert != null) { return new Insert(term(patch.insert, a, b)); }
if (patch.replace != null) { return new Replace(term(patch.replace.before, a, b), term(patch.replace.after, a, b)); }
}
function indexed(array, a, b, continuation) {