summaryrefslogtreecommitdiffstats
path: root/js/src/gdb/tests/test-JSSymbol.py
blob: a0dba5c036bdea4d4b9f9f9c9ac2d078206daff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Printing JS::Symbols.
# flake8: noqa: F821

assert_subprinter_registered("SpiderMonkey", "ptr-to-JS::Symbol")

run_fragment("JSSymbol.simple")

assert_pretty("unique", "Symbol()")
assert_pretty("unique_with_desc", 'Symbol("Hello!")')
assert_pretty("registry", 'Symbol.for("Hello!")')
assert_pretty("well_known", "Symbol.iterator")