1// META: global=window,dedicatedworker,jsshell 2 3test(() => { 4 const argument = { "value": "i32" }; 5 const global = new WebAssembly.Global(argument); 6 assert_class_string(global, "WebAssembly.Global"); 7}, "Object.prototype.toString on an Global"); 8 9test(() => { 10 assert_own_property(WebAssembly.Global.prototype, Symbol.toStringTag); 11 12 const propDesc = Object.getOwnPropertyDescriptor(WebAssembly.Global.prototype, Symbol.toStringTag); 13 assert_equals(propDesc.value, "WebAssembly.Global", "value"); 14 assert_equals(propDesc.configurable, true, "configurable"); 15 assert_equals(propDesc.enumerable, false, "enumerable"); 16 assert_equals(propDesc.writable, false, "writable"); 17}, "@@toStringTag exists on the prototype with the appropriate descriptor"); 18