@@ -421,7 +421,7 @@ function exportRuntime() {
421
421
422
422
// Add JS library elements such as FS, GL, ENV, etc. These are prefixed with
423
423
// '$ which indicates they are JS methods.
424
- const runtimeElementsSet = new Set ( runtimeElements ) ;
424
+ let runtimeElementsSet = new Set ( runtimeElements ) ;
425
425
for ( const ident in LibraryManager . library ) {
426
426
if ( ident [ 0 ] === '$' && ! isJsLibraryConfigIdentifier ( ident ) && ! isInternalSymbol ( ident ) ) {
427
427
const jsname = ident . substr ( 1 ) ;
@@ -430,16 +430,16 @@ function exportRuntime() {
430
430
}
431
431
}
432
432
433
- let unexportedStubs = '' ;
434
- if ( ASSERTIONS ) {
435
- // check all exported things exist, warn about typos
436
- const runtimeElementsSet = new Set ( runtimeElements ) ;
437
- for ( const name of EXPORTED_RUNTIME_METHODS_SET ) {
438
- if ( ! runtimeElementsSet . has ( name ) ) {
439
- warn ( `invalid item in EXPORTED_RUNTIME_METHODS: ${ name } ` ) ;
440
- }
433
+ // check all exported things exist, warn about typos
434
+ runtimeElementsSet = new Set ( runtimeElements ) ;
435
+ for ( const name of EXPORTED_RUNTIME_METHODS_SET ) {
436
+ if ( ! runtimeElementsSet . has ( name ) ) {
437
+ warn ( `invalid item in EXPORTED_RUNTIME_METHODS: ${ name } ` ) ;
441
438
}
439
+ }
442
440
441
+ let unexportedStubs = '' ;
442
+ if ( ASSERTIONS ) {
443
443
const unexported = [ ] ;
444
444
for ( const name of runtimeElements ) {
445
445
if ( ! EXPORTED_RUNTIME_METHODS_SET . has ( name ) ) {
0 commit comments