# HG changeset patch # User yan # Date 1406724542 -14400 # Node ID 848259b3947201c1366ee2e6964e234be0861626 # Parent 4d7a0832c63e9d2fd79ef4b5ad4ecf643d242540 8049318: Test hideLocationProperties.js fails on Window due to backslash in path Reviewed-by: lagergren, sundar Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com> diff -r 4d7a0832c63e -r 848259b39472 nashorn/test/script/basic/hideLocationProperties.js --- a/nashorn/test/script/basic/hideLocationProperties.js Tue Jul 29 14:35:24 2014 -0700 +++ b/nashorn/test/script/basic/hideLocationProperties.js Wed Jul 30 16:49:02 2014 +0400 @@ -46,7 +46,7 @@ (function() { print(__FILE__) })() } -print(__FILE__) +print(__FILE__.replace(/\\/g, "/")) var o = { __FILE__: "woot" } with(o) { print(__FILE__) }