Skip to content

Commit

Permalink
Add a TODO, delete a debugging console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcallen committed Jan 23, 2023
1 parent dc49794 commit 6401f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/interpreter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5964,6 +5964,8 @@ var performStaticAnalysis = function(node) {
* @param {!Node} node AST node (program or function).
* Nested function writes to boundNames and hasArgumentsOrEval.
* @return {void}
* TODO(cpcallen): Limit recursion to only AST nodes that can
* contain declarations (e.g. no ExpressionStatements?)
*/
function walk(node) {
if (node['type'] === 'VariableDeclaration') {
Expand Down
1 change: 0 additions & 1 deletion server/serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ Serializer.serialize = function(intrp) {
if (value && (typeof value === 'object' || typeof value === 'function')) {
var ref = objectRefs.get(value);
if (ref === undefined) {
console.log('>>>', value);
throw new RangeError('object not found in table');
}
return {'#': ref};
Expand Down

0 comments on commit 6401f6a

Please sign in to comment.