From a23b86eca11564de8290bc577d0f7fb2c2654f3c Mon Sep 17 00:00:00 2001 From: Ray Luxembourg Date: Mon, 30 Aug 2021 21:00:46 +0300 Subject: [PATCH] Update frame.js Add frame object type documentation --- visualizer/data/frame.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/visualizer/data/frame.js b/visualizer/data/frame.js index 62756875..062bc49c 100644 --- a/visualizer/data/frame.js +++ b/visualizer/data/frame.js @@ -1,6 +1,22 @@ 'use strict' class Frame { + /** + * + * @param {object} frame + * @param {String} frame.functionName + * @param {String} frame.typeName + * @param {String} frame.evalOrigin + * @param {String} frame.fileName + * @param {String} frame.lineNumber + * @param {String} frame.columnNumber + * @param {Boolean} frame.isEval + * @param {Boolean} frame.isConstructor + * @param {Boolean} frame.isNative + * @param {Boolean} frame.isToplevel + * @param {String} frame.fileName + * + */ constructor (frame) { this.functionName = frame.functionName this.typeName = frame.typeName