We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd4b7be commit 5d26b52Copy full SHA for 5d26b52
graal-js/src/com.oracle.truffle.js.test/js/GR-54930.js
@@ -5,12 +5,21 @@
5
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6
*/
7
8
+/**
9
+ * Sanity check of stack-trace-api option.
10
+ *
11
+ * @option stack-trace-api=false
12
+ */
13
+
14
load("assert.js");
15
16
function createError(n) {
17
return n ? createError(n-1) : new Error();
18
}
19
20
+// Error.captureStackTrace should not be defined
21
+assertSame(undefined, Error.captureStackTrace);
22
23
// Error.stackTraceLimit should have no impact on the stack property
24
var expected = createError(10).stack;
25
0 commit comments