• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// META: global=window,dedicatedworker,jsshell
2
3test(() => {
4  const argument = { "element": "anyfunc", "initial": 0 };
5  const table = new WebAssembly.Table(argument);
6  assert_class_string(table, "WebAssembly.Table");
7}, "Object.prototype.toString on an Table");
8
9test(() => {
10  assert_own_property(WebAssembly.Table.prototype, Symbol.toStringTag);
11
12  const propDesc = Object.getOwnPropertyDescriptor(WebAssembly.Table.prototype, Symbol.toStringTag);
13  assert_equals(propDesc.value, "WebAssembly.Table", "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