Index: test/mjsunit/ignition/stack-trace-source-position.js |
diff --git a/test/mjsunit/ignition/stack-trace-source-position.js b/test/mjsunit/ignition/stack-trace-source-position.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1c4079ab397c4819f9e51829638e36c5f6a8c089 |
--- /dev/null |
+++ b/test/mjsunit/ignition/stack-trace-source-position.js |
@@ -0,0 +1,13 @@ |
+// Copyright 2016 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: --ignition --ignition-filter=f |
+ |
+function f() { |
+ return new Error().stack; |
+} |
+ |
+// TODO(yangguo): this is just a dummy source position calculated for |
+// interpreter bytecode. Update this once something better comes along. |
+assertTrue(/at f.*?:\d+:\d+/.test(f())); |