File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -283,10 +283,6 @@ function cDefine(key) {
283
283
return cDefs [ key ] ;
284
284
}
285
285
286
- function isFSPrefixed ( name ) {
287
- return name . length > 3 && name [ 0 ] === 'F' && name [ 1 ] === 'S' && name [ 2 ] === '_' ;
288
- }
289
-
290
286
function isInternalSymbol ( ident ) {
291
287
return ident + '__internal' in LibraryManager . library ;
292
288
}
@@ -342,7 +338,7 @@ function exportRuntime() {
342
338
if ( EXPORTED_RUNTIME_METHODS_SET . has ( name ) ) {
343
339
let exported = name ;
344
340
// the exported name may differ from the internal name
345
- if ( isFSPrefixed ( exported ) ) {
341
+ if ( exported . startsWith ( 'FS_' ) ) {
346
342
// this is a filesystem value, FS.x exported as FS_x
347
343
exported = 'FS.' + exported . substr ( 3 ) ;
348
344
} else if ( legacyRuntimeElements . has ( exported ) ) {
You can’t perform that action at this time.
0 commit comments