diff --git a/js/src/wasm/WasmJS.cpp b/js/src/wasm/WasmJS.cpp index 5484cc7458bfd..a99163a0e90a8 100644 --- a/js/src/wasm/WasmJS.cpp +++ b/js/src/wasm/WasmJS.cpp @@ -5334,6 +5334,9 @@ static const JSFunctionSpec WebAssembly_static_methods[] = { JSPROP_ENUMERATE), JS_FS_END}; +static const JSPropertySpec WebAssembly_static_properties[] = { + JS_STRING_SYM_PS(toStringTag, "WebAssembly", JSPROP_READONLY), JS_PS_END}; + static JSObject* CreateWebAssemblyObject(JSContext* cx, JSProtoKey key) { MOZ_RELEASE_ASSERT(HasSupport(cx)); @@ -5414,13 +5417,10 @@ static bool WebAssemblyClassFinish(JSContext* cx, HandleObject object, return true; } -static const ClassSpec WebAssemblyClassSpec = {CreateWebAssemblyObject, - nullptr, - WebAssembly_static_methods, - nullptr, - nullptr, - nullptr, - WebAssemblyClassFinish}; +static const ClassSpec WebAssemblyClassSpec = { + CreateWebAssemblyObject, nullptr, WebAssembly_static_methods, + WebAssembly_static_properties, nullptr, nullptr, + WebAssemblyClassFinish}; const JSClass js::WasmNamespaceObject::class_ = { js_WebAssembly_str, JSCLASS_HAS_CACHED_PROTO(JSProto_WebAssembly), diff --git a/testing/web-platform/meta/wasm/jsapi/constructor/toStringTag.any.js.ini b/testing/web-platform/meta/wasm/jsapi/constructor/toStringTag.any.js.ini deleted file mode 100644 index 8135a3f096f29..0000000000000 --- a/testing/web-platform/meta/wasm/jsapi/constructor/toStringTag.any.js.ini +++ /dev/null @@ -1,44 +0,0 @@ -[toStringTag.any.html] - expected: - if (os == "android") and fission: [OK, TIMEOUT] - [Object.prototype.toString applied after deleting @@toStringTag] - expected: FAIL - - [@@toStringTag exists on the namespace object with the appropriate descriptor] - expected: FAIL - - [Object.prototype.toString applied after modifying the namespace object's @@toStringTag] - expected: FAIL - - [Object.prototype.toString applied to the namespace object] - expected: FAIL - - -[toStringTag.any.worker.html] - expected: - if (os == "android") and fission: [OK, TIMEOUT] - [Object.prototype.toString applied after deleting @@toStringTag] - expected: FAIL - - [@@toStringTag exists on the namespace object with the appropriate descriptor] - expected: FAIL - - [Object.prototype.toString applied after modifying the namespace object's @@toStringTag] - expected: FAIL - - [Object.prototype.toString applied to the namespace object] - expected: FAIL - - -[toStringTag.any.js] - [Object.prototype.toString applied after deleting @@toStringTag] - expected: FAIL - - [@@toStringTag exists on the namespace object with the appropriate descriptor] - expected: FAIL - - [Object.prototype.toString applied after modifying the namespace object's @@toStringTag] - expected: FAIL - - [Object.prototype.toString applied to the namespace object] - expected: FAIL