nashorn/samples/prettyprinter.js
changeset 39662 e2b36a3779b9
parent 29541 efc10427bddc
--- a/nashorn/samples/prettyprinter.js	Wed Jul 05 21:57:11 2017 +0200
+++ b/nashorn/samples/prettyprinter.js	Tue Jul 12 21:18:13 2016 +0530
@@ -209,7 +209,7 @@
         }
         print("function ");
         if (func.name) {
-            print(func.name);
+            print(func.name.name);
         }
         printFunctionBody(func, extra, end);
         if (funcDecl) {
@@ -608,7 +608,7 @@
 
          visitVariable: function(node, extra) {
              indent();
-             print("var " + node.name);
+             print("var " + node.binding.name);
              var init = node.initializer;
              if (init) {
                  print(" = ");