未验证 提交 da9c3108 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #20543 from takahirox/FixCheckCoverage

Fix ReferenceError in check-coverage.js
......@@ -13,11 +13,13 @@ const S = fs.readdirSync( './examples/screenshots' )
// files.js
const F = [];
eval( fs.readFileSync( './examples/files.js' ).toString() );
for ( var key in files ) {
// To expose files variable to out of eval scope, we need var statement, not const.
eval( fs.readFileSync( './examples/files.js' )
.toString().replace( 'const files', 'var files' ) );
for ( const key in files ) {
var section = files[ key ];
for ( var i = 0, len = section.length; i < len; i ++ ) {
const section = files[ key ];
for ( let i = 0, len = section.length; i < len; i ++ ) {
F.push( section[ i ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册