mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 15:53:55 +00:00
added try/catch block
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
Object.defineProperty(Array.prototype, "peek",
|
try { Object.defineProperty(Array.prototype, "peek", { value: function () { return (this.length > 0 ? this[this.length - 1] : undefined); } }); } catch (e) { }
|
||||||
{
|
|
||||||
value: function ()
|
|
||||||
{
|
|
||||||
return (this.length > 0 ? this[this.length - 1] : undefined);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
function _treeBuilder()
|
function _treeBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user