Skip to content
Snippets Groups Projects
  • Sam Mikes's avatar
    4205a1da
    harness: remove unused code · 4205a1da
    Sam Mikes authored
    sta.js:
    slight change to Test262Error() semantics; message property now always set (default "")
    make $ERROR a var
    set $ERROR to function $ERROR so it can be overridden if needed
    remove 2009 copyright in favor of 2012 copyright
    REVERTED: remove never-used fn testFailed
    testFailed actually used by $FAIL
    remove obsolete fn $INCLUDE
    
    ed.js:
    remove commented-out obsolete code
    
    test262.py:
    remove always-included harness file that provides no functions used by any extant test
    add comment line to nonstrict
    
    cth.js: define `print` for node, cscript
    
    use cth (console test harness) to define functions
    for console runner.  V8, Spidermonkey (js) and JavaScriptCore (jsc)
    provide a function `print`.  Provide a default `print` for node
    and cscript
    
    set print_handle to 'print' by default (can still override)
    for cscript: wrap tests in try/catch so we get syntax errors
    4205a1da
    History
    harness: remove unused code
    Sam Mikes authored
    sta.js:
    slight change to Test262Error() semantics; message property now always set (default "")
    make $ERROR a var
    set $ERROR to function $ERROR so it can be overridden if needed
    remove 2009 copyright in favor of 2012 copyright
    REVERTED: remove never-used fn testFailed
    testFailed actually used by $FAIL
    remove obsolete fn $INCLUDE
    
    ed.js:
    remove commented-out obsolete code
    
    test262.py:
    remove always-included harness file that provides no functions used by any extant test
    add comment line to nonstrict
    
    cth.js: define `print` for node, cscript
    
    use cth (console test harness) to define functions
    for console runner.  V8, Spidermonkey (js) and JavaScriptCore (jsc)
    provide a function `print`.  Provide a default `print` for node
    and cscript
    
    set print_handle to 'print' by default (can still override)
    for cscript: wrap tests in try/catch so we get syntax errors
test262.py 19.48 KiB