1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

added try/catch block

This commit is contained in:
Bryan Roe
2019-01-11 13:53:41 -08:00
parent 8344d03f22
commit c1b55c1fa8

View File

@@ -1,10 +1,5 @@
Object.defineProperty(Array.prototype, "peek",
{
value: function ()
{
return (this.length > 0 ? this[this.length - 1] : undefined);
}
});
try { Object.defineProperty(Array.prototype, "peek", { value: function () { return (this.length > 0 ? this[this.length - 1] : undefined); } }); } catch (e) { }
function _treeBuilder()