39
39
from tools .shared import get_canonical_temp_dir , path_from_root
40
40
from tools .utils import MACOS , WINDOWS , read_file , read_binary , write_binary , exit_with_error
41
41
from tools .settings import COMPILE_TIME_SETTINGS
42
- from tools import shared , feature_matrix , building , config , utils
42
+ from tools import shared , building , config , utils
43
43
44
44
logger = logging .getLogger ('common' )
45
45
@@ -1204,16 +1204,15 @@ def setUp(self):
1204
1204
nodejs = self .get_nodejs ()
1205
1205
if nodejs :
1206
1206
node_version = shared .get_node_version (nodejs )
1207
- if node_version < (11 , 0 , 0 ):
1207
+ if node_version < (15 , 0 , 0 ):
1208
+ # The default behaviour changes in v15:
1209
+ # https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode
1208
1210
self .node_args .append ('--unhandled-rejections=strict' )
1211
+ if node_version < (11 , 0 , 0 ):
1209
1212
self .node_args .append ('--experimental-wasm-se' )
1210
1213
else :
1211
1214
# Include backtrace for all uncuaght exceptions (not just Error).
1212
1215
self .node_args .append ('--trace-uncaught' )
1213
- if node_version < (15 , 0 , 0 ):
1214
- # Opt in to node v15 default behaviour:
1215
- # https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode
1216
- self .node_args .append ('--unhandled-rejections=throw' )
1217
1216
self .node_args += shared .node_bigint_flags (nodejs )
1218
1217
1219
1218
# If the version we are running tests in is lower than the version that
@@ -1228,11 +1227,6 @@ def setUp(self):
1228
1227
self .cflags += building .get_emcc_node_flags (node_version )
1229
1228
self .cflags .append ('-Wno-transpile' )
1230
1229
1231
- # This allows much of the test suite to be run on older versions of node that don't
1232
- # support wasm bigint integration
1233
- if node_version [0 ] < feature_matrix .min_browser_versions [feature_matrix .Feature .JS_BIGINT_INTEGRATION ]['node' ] / 10000 :
1234
- self .cflags .append ('-sWASM_BIGINT=0' )
1235
-
1236
1230
self .v8_args = ['--wasm-staging' ]
1237
1231
self .env = {}
1238
1232
self .temp_files_before_run = []
0 commit comments