Index: test/mjsunit/regress/regress-397.js |
diff --git a/test/mjsunit/regress/regress-397.js b/test/mjsunit/regress/regress-397.js |
index 111f4a6e531df609642ac449ae1e266b8c83b0eb..0e4143d032d886ca74258950f6c9f1b2954f96db 100644 |
--- a/test/mjsunit/regress/regress-397.js |
+++ b/test/mjsunit/regress/regress-397.js |
@@ -25,10 +25,19 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Flags: --allow-natives-syntax |
// See http://code.google.com/p/v8/issues/detail?id=397 |
-assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); |
-assertEquals(0, Math.pow(Infinity, -0.5)); |
-assertEquals("Infinity", String(Math.pow(-Infinity, 0.5))); |
-assertEquals(0, Math.pow(-Infinity, -0.5)); |
+function test() { |
+ assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); |
+ assertEquals(0, Math.pow(Infinity, -0.5)); |
+ |
+ assertEquals("Infinity", String(Math.pow(-Infinity, 0.5))); |
+ assertEquals(0, Math.pow(-Infinity, -0.5)); |
+} |
+ |
+test(); |
+test(); |
+%OptimizeFunctionOnNextCall(test); |
+test(); |