mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 17:04:31 +02:00
lint: accept frontmatter without esid, es6id.
This commit is contained in:
parent
b1aa569c84
commit
40cb228633
@ -14,6 +14,9 @@ class CheckEsid(Check):
|
|||||||
if not meta:
|
if not meta:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if 'es6id' not in meta and 'esid' not in meta:
|
||||||
|
return
|
||||||
|
|
||||||
# es5ids are a mess
|
# es5ids are a mess
|
||||||
#if 'es5id' in meta:
|
#if 'es5id' in meta:
|
||||||
# es5id = str(meta['es5id'])
|
# es5id = str(meta['es5id'])
|
||||||
@ -29,3 +32,5 @@ class CheckEsid(Check):
|
|||||||
esid = str(meta['esid'])
|
esid = str(meta['esid'])
|
||||||
if self.esidRegex.match(esid) == None:
|
if self.esidRegex.match(esid) == None:
|
||||||
return 'The `esid` tag has the wrong format: %s' % esid
|
return 'The `esid` tag has the wrong format: %s' % esid
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user