From 3fbfef5d5986f230606ea9e186e7dae5df2873ce Mon Sep 17 00:00:00 2001 From: Jan Stola Date: Tue, 25 Jun 2024 14:51:58 +0200 Subject: [PATCH] Tests using Error.prepareStackTrace/stackTraceLimit should use v8-compat mode. (cherry picked from commit 294592edd64cd9fb2701f176a47782bca019170f) --- graal-js/src/com.oracle.truffle.js.test/js/GR-53714.js | 1 + graal-js/src/com.oracle.truffle.js.test/js/callsite.js | 2 ++ .../js/runtime/error_stacktracelimit.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/graal-js/src/com.oracle.truffle.js.test/js/GR-53714.js b/graal-js/src/com.oracle.truffle.js.test/js/GR-53714.js index ff2901f56eb..0d74c8b91dd 100644 --- a/graal-js/src/com.oracle.truffle.js.test/js/GR-53714.js +++ b/graal-js/src/com.oracle.truffle.js.test/js/GR-53714.js @@ -9,6 +9,7 @@ * Regression test of the handling of long values. * * @option temporal + * @option v8-compat */ load('assert.js'); diff --git a/graal-js/src/com.oracle.truffle.js.test/js/callsite.js b/graal-js/src/com.oracle.truffle.js.test/js/callsite.js index fec124eaa2b..c75c9e93ccf 100644 --- a/graal-js/src/com.oracle.truffle.js.test/js/callsite.js +++ b/graal-js/src/com.oracle.truffle.js.test/js/callsite.js @@ -7,6 +7,8 @@ /** * Tests of CallSite built-ins. + * + * @option v8-compat */ load('assert.js'); diff --git a/graal-js/src/com.oracle.truffle.js.test/js/runtime/error_stacktracelimit.js b/graal-js/src/com.oracle.truffle.js.test/js/runtime/error_stacktracelimit.js index 962ec0b45ed..620f4b1313f 100644 --- a/graal-js/src/com.oracle.truffle.js.test/js/runtime/error_stacktracelimit.js +++ b/graal-js/src/com.oracle.truffle.js.test/js/runtime/error_stacktracelimit.js @@ -6,6 +6,8 @@ */ /* * Test that getting Error.stackTraceLimit is side-effect-free. + * + * @option v8-compat */ class MyError extends Error {