diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-04-25 08:18:23 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-04-25 11:14:57 +0000 |
commit | 55139554bae383d85dfe2f96a09d91af2e01da77 (patch) | |
tree | c10628dce8f4f330373c081c3bf1602cde88d422 /tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js | |
parent | 537e575d3da0fff914f99e4c25026d119e8b6f90 (diff) | |
download | servo-55139554bae383d85dfe2f96a09d91af2e01da77.tar.gz servo-55139554bae383d85dfe2f96a09d91af2e01da77.zip |
Update web-platform-tests to revision 78eae724c61bb01d858a01a324363e997ac66851
Diffstat (limited to 'tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js b/tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js index 2db2002ffd2..7dd85a1c4ac 100644 --- a/tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js +++ b/tests/wpt/web-platform-tests/wasm/jsapi/module/toString.any.js @@ -6,3 +6,13 @@ test(() => { const module = new WebAssembly.Module(emptyModuleBinary); assert_class_string(module, "WebAssembly.Module"); }, "Object.prototype.toString on an Module"); + +test(() => { + assert_own_property(WebAssembly.Module.prototype, Symbol.toStringTag); + + const propDesc = Object.getOwnPropertyDescriptor(WebAssembly.Module.prototype, Symbol.toStringTag); + assert_equals(propDesc.value, "WebAssembly.Module", "value"); + assert_equals(propDesc.configurable, true, "configurable"); + assert_equals(propDesc.enumerable, false, "enumerable"); + assert_equals(propDesc.writable, false, "writable"); +}, "@@toStringTag exists on the prototype with the appropriate descriptor"); |