Skip to content

Commit fad3909

Browse files
authored
$ may need to be escaped in shell environments (#19534)
1 parent ba1b6d8 commit fad3909

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime_debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function missingLibrarySymbol(sym) {
6767
if (!librarySymbol.startsWith('_')) {
6868
librarySymbol = '$' + sym;
6969
}
70-
msg += " (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=" + librarySymbol + ")";
70+
msg += " (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='" + librarySymbol + "')";
7171
if (isExportedByForceFilesystem(sym)) {
7272
msg += '. Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you';
7373
}

test/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7303,7 +7303,7 @@ def test(expected, args=None, assert_returncode=0):
73037303

73047304
# When assertions are enabled direct and indirect usage both abort with a useful error message.
73057305
not_exported = "Aborted('ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ))"
7306-
not_included = "`ALLOC_STACK` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=$ALLOC_STACK)"
7306+
not_included = "`ALLOC_STACK` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE='$ALLOC_STACK')"
73077307
self.set_setting('ASSERTIONS')
73087308
test(not_exported, assert_returncode=NON_ZERO)
73097309
test(not_included, args=['-DDIRECT'])

0 commit comments

Comments
 (0)