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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user