Right now, Test262 doesn't have the proper metadata to support this use case.
It describes "negative syntax" tests generally without distinguishing grammar
var class) from lexing errors (e.g.
"unclosed string). I'd be
interested in introducing that information, but I'd like to gauge interest
Would the maintainers be interested in using Test262 like this?