|
@@ -218,9 +218,20 @@ class Stack {
|
|
this.register = null;
|
|
this.register = null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Wrapper function for Array.prototype.push
|
|
|
|
+ * @param {*} newValue
|
|
|
|
+ */
|
|
Push(newValue) {
|
|
Push(newValue) {
|
|
this.stack.push(newValue);
|
|
this.stack.push(newValue);
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * Wrapper function for Array.prototype.pop
|
|
|
|
+ * @returns {*}
|
|
|
|
+ */
|
|
|
|
+ Pop() {
|
|
|
|
+ return this.stack.pop();
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* Implement }
|
|
* Implement }
|