From 1ed2372816166e7127382023e5ede31494b76ade Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Wed, 9 Oct 2013 10:47:47 +0200 Subject: [PATCH] 8026112: Function("with(x ? 1e81 : (x2.constructor = 0.1)){}") throws AssertionError: double is not compatible with object Reviewed-by: lagergren, hannesw --- .../internal/codegen/CodeGenerator.java | 4 +-- nashorn/test/script/basic/JDK-8026112.js | 31 +++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 nashorn/test/script/basic/JDK-8026112.js diff --git a/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java b/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java index 5f7f596de03..8ce908d8197 100644 --- a/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java +++ b/nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java @@ -2893,7 +2893,7 @@ final class CodeGenerator extends NodeOperatorVisitor