js/src/gdb/tests/test-JSObject.py

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     1 # Printing JSObjects.
     3 assert_subprinter_registered('SpiderMonkey', 'ptr-to-JSObject')
     4 assert_subprinter_registered('SpiderMonkey', 'ref-to-JSObject')
     6 run_fragment('JSObject.simple')
     8 # These patterns look a little strange because of prolog.py's 'set print
     9 # address off', which avoids putting varying addresses in the output. After
    10 # the '(JSObject *) ', there is a 'void *' value printing as the empty
    11 # string.
    13 assert_pretty('glob', '(JSObject *)  [object global] delegate')
    14 assert_pretty('plain', '(JSObject *)  [object Object]')
    15 assert_pretty('func', '(JSObject *)  [object Function "dys"]')
    16 assert_pretty('anon', '(JSObject *)  [object Function <unnamed>]')
    17 assert_pretty('funcPtr', '(JSFunction *)  [object Function "formFollows"]')
    19 assert_pretty('plainRef', '(JSObject &) @ [object Object]')
    20 assert_pretty('funcRef', '(JSFunction &) @ [object Function "formFollows"]')

mercurial