summaryrefslogtreecommitdiffstats
path: root/js/src/gdb/tests/test-JSString-subclasses.py
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/gdb/tests/test-JSString-subclasses.py')
-rw-r--r--js/src/gdb/tests/test-JSString-subclasses.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/gdb/tests/test-JSString-subclasses.py b/js/src/gdb/tests/test-JSString-subclasses.py
new file mode 100644
index 0000000000..b685f46aff
--- /dev/null
+++ b/js/src/gdb/tests/test-JSString-subclasses.py
@@ -0,0 +1,7 @@
+# flake8: noqa: F821
+
+# We can print pointers to subclasses of JSString.
+
+run_fragment("JSString.subclasses")
+
+assert_pretty("linear", '"Hi!"')