11cb0ef41Sopenharmony_ci// META: global=window,dedicatedworker,jsshell 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_citest(() => { 41cb0ef41Sopenharmony_ci const argument = { parameters: [] }; 51cb0ef41Sopenharmony_ci const tag = new WebAssembly.Tag(argument); 61cb0ef41Sopenharmony_ci const exn = new WebAssembly.Exception(tag, []); 71cb0ef41Sopenharmony_ci assert_class_string(exn, "WebAssembly.Exception"); 81cb0ef41Sopenharmony_ci}, "Object.prototype.toString on an Exception"); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_citest(() => { 111cb0ef41Sopenharmony_ci assert_own_property(WebAssembly.Exception.prototype, Symbol.toStringTag); 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ci const propDesc = Object.getOwnPropertyDescriptor( 141cb0ef41Sopenharmony_ci WebAssembly.Exception.prototype, 151cb0ef41Sopenharmony_ci Symbol.toStringTag 161cb0ef41Sopenharmony_ci ); 171cb0ef41Sopenharmony_ci assert_equals(propDesc.value, "WebAssembly.Exception", "value"); 181cb0ef41Sopenharmony_ci assert_equals(propDesc.configurable, true, "configurable"); 191cb0ef41Sopenharmony_ci assert_equals(propDesc.enumerable, false, "enumerable"); 201cb0ef41Sopenharmony_ci assert_equals(propDesc.writable, false, "writable"); 211cb0ef41Sopenharmony_ci}, "@@toStringTag exists on the prototype with the appropriate descriptor"); 22