From dee1364e7ce0abd7f6aa62e522262c09cc70b86a Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Wed, 25 Jun 2014 17:08:47 +0530 Subject: [PATCH] 8048071: eval within 'with' statement does not use correct scope if with scope expression has a copy of eval Reviewed-by: hannesw, jlaskey --- .../internal/codegen/CodeGenerator.java | 23 ++++- .../jdk/nashorn/internal/ir/IdentNode.java | 11 +++ nashorn/test/script/basic/JDK-8048071.js | 85 +++++++++++++++++++ .../test/script/basic/JDK-8048071.js.EXPECTED | 11 +++ 4 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 nashorn/test/script/basic/JDK-8048071.js create mode 100644 nashorn/test/script/basic/JDK-8048071.js.EXPECTED diff --git a/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java b/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java index 110e1109d4a..de971ab0308 100644 --- a/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java +++ b/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java @@ -1290,13 +1290,26 @@ final class CodeGenerator extends NodeOperatorVisitor