Skip to content

Commit 5d26b52

Browse files
iamstoliswoess
authored andcommitted
Testing js.stack-trace-api option.
(cherry picked from commit 6eecdce)
1 parent fd4b7be commit 5d26b52

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

graal-js/src/com.oracle.truffle.js.test/js/GR-54930.js

+9
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@
55
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
66
*/
77

8+
/**
9+
* Sanity check of stack-trace-api option.
10+
*
11+
* @option stack-trace-api=false
12+
*/
13+
814
load("assert.js");
915

1016
function createError(n) {
1117
return n ? createError(n-1) : new Error();
1218
}
1319

20+
// Error.captureStackTrace should not be defined
21+
assertSame(undefined, Error.captureStackTrace);
22+
1423
// Error.stackTraceLimit should have no impact on the stack property
1524
var expected = createError(10).stack;
1625

0 commit comments

Comments
 (0)