nashorn/test/script/basic/JDK-8016667.js
changeset 18844 f85cfbfb4d11
parent 18631 537b279999e5
child 24778 2ff5d7041566
--- a/nashorn/test/script/basic/JDK-8016667.js	Wed Jul 03 17:26:31 2013 +0530
+++ b/nashorn/test/script/basic/JDK-8016667.js	Wed Jul 03 15:46:03 2013 +0200
@@ -32,3 +32,23 @@
     var friends = 1;
     (joe = friends) == null;
 } 
+
+//JDK-8019476 duplicate case of this
+Function("with(\nnull == (this % {}))( /x/g );"); 
+
+function f() {
+    with(null == (this % {}))(/x/g);
+}
+
+Function("return (null != [,,] <= this);"); 
+
+function f2() {
+    return (null != [,,] <= this);
+}
+
+Function("/*infloop*/L:for(var x; ([+(function (window)[,,])(function(q) { return q; }, -0)].some(new Function)); [11,12,13,14].some) {/*infloop*/do {;return this; } while(x); }"); 
+
+function f3() {
+    /*infloop*/L:for(var x; ([+(function (window)[,,])(function(q) { return q; }, -0)].some(new Function)); [11,12,13,14].some) {/*infloop*/do {;return this; } while(x); }
+}
+