tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-GCCellPtr.py (733B)


      1 # Tests for GCCellPtr pretty-printing
      2 # flake8: noqa: F821
      3 
      4 assert_subprinter_registered("SpiderMonkey", "JS::GCCellPtr")
      5 
      6 run_fragment("GCCellPtr.simple")
      7 
      8 assert_pretty("nulll", "JS::GCCellPtr(nullptr)")
      9 assert_pretty("object", "JS::GCCellPtr((JSObject*) )")
     10 assert_pretty("string", "JS::GCCellPtr((JSString*) )")
     11 assert_pretty("symbol", "JS::GCCellPtr((JS::Symbol*) )")
     12 assert_pretty("bigint", "JS::GCCellPtr((JS::BigInt*) )")
     13 assert_pretty("shape", "JS::GCCellPtr((js::Shape*) )")
     14 assert_pretty("baseShape", "JS::GCCellPtr((js::BaseShape*) )")
     15 assert_pretty("script", "JS::GCCellPtr((js::BaseScript*) )")
     16 assert_pretty("scope", "JS::GCCellPtr((js::Scope*) )")
     17 assert_pretty("regExpShared", "JS::GCCellPtr((js::RegExpShared*) )")