nashorn/test/script/basic/JDK-8020357.js
changeset 19456 8cc345d620c8
parent 18883 30a82ef1bdf7
child 24720 75f8388b79df
--- a/nashorn/test/script/basic/JDK-8020357.js	Wed Aug 07 16:38:44 2013 +0200
+++ b/nashorn/test/script/basic/JDK-8020357.js	Thu Aug 08 16:38:32 2013 +0530
@@ -33,17 +33,6 @@
 
 var limit = Math.pow(2, UNSIGNED_INT_BITS)/BYTES_PER_INT_32
 
-try {
-    // A value at or under the limit should either succeed if we have
-    // enough heap, or throw an OutOfMemoryError if we don't.
-    Int32Array(limit - 1)
-} catch(e) {
-    if(!(e instanceof java.lang.OutOfMemoryError)) {
-        // Only print an unexpected result; OutOfMemoryError is expected
-        print(e)
-    }
-}
-
 // A value over the limit should throw a RangeError.
 try {
     Int32Array(limit)