nashorn/test/script/basic/JDK-8025515.js
changeset 24719 f726e9d67629
parent 22374 5231ab59e740
child 24778 2ff5d7041566
--- a/nashorn/test/script/basic/JDK-8025515.js	Tue Feb 25 18:56:10 2014 +0530
+++ b/nashorn/test/script/basic/JDK-8025515.js	Wed Feb 26 13:17:57 2014 +0100
@@ -47,7 +47,7 @@
         var stack = e.nashornException.getStackTrace();
         var name = getFirstScriptFrame(stack).methodName;
         if (name !== expected) {
-            fail("got " + stack[0].methodName + ", expected " + expected);
+            fail("got " + name + ", expected " + expected);
         }
     }
 }
@@ -61,7 +61,7 @@
 var f = (function() {
     return function() { a.b.c; };
 })();
-testMethodName(f, "L:61$L:62");
+testMethodName(f, "f$L:62");
 
 testMethodName((function() {
     return function() { return a.b.c; };