Index: test/mjsunit/regress/regress-682349.js |
diff --git a/test/mjsunit/regress/regress-682349.js b/test/mjsunit/regress/regress-682349.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..162774fa0bd34ea64a881e915b786ef46f5b4237 |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-682349.js |
@@ -0,0 +1,13 @@ |
+// Copyright 2017 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Flags: --allow-natives-syntax |
+ |
+let success = false; |
+function f() { |
+ success = (f.caller.arguments === null); |
+} |
+Promise.resolve().then(f); |
+%RunMicrotasks(); |
+assertTrue(success); |