mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
array bracket are not valid in Wasm identifiers.
This commit is contained in:
parent
3e9a8b1460
commit
54ad287ed6
@ -282,7 +282,8 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalize the function name for the text format
|
* Normalize the function name for the text format of IDs.
|
||||||
|
* https://webassembly.github.io/spec/core/text/values.html#text-id
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* the name
|
* the name
|
||||||
@ -290,7 +291,7 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
*/
|
*/
|
||||||
@Nonnull
|
@Nonnull
|
||||||
private String normalizeName( String name ) {
|
private String normalizeName( String name ) {
|
||||||
return name;
|
return name.replace( '[', '/' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user