mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-21 20:22:14 +00:00
Remove accidental double braces
This commit is contained in:
parent
dd9c444aeb
commit
8e5f5d20fc
@ -1043,11 +1043,11 @@ impl<'a> Context<'a> {
|
|||||||
self.expose_uint32_memory();
|
self.expose_uint32_memory();
|
||||||
self.expose_global_argument_ptr();
|
self.expose_global_argument_ptr();
|
||||||
self.globals.push_str("
|
self.globals.push_str("
|
||||||
function pushGlobalArgument(arg) {{
|
function pushGlobalArgument(arg) {
|
||||||
const idx = globalArgumentPtr() / 4 + GLOBAL_ARGUMENT_CNT;
|
const idx = globalArgumentPtr() / 4 + GLOBAL_ARGUMENT_CNT;
|
||||||
getUint32Memory()[idx] = arg;
|
getUint32Memory()[idx] = arg;
|
||||||
GLOBAL_ARGUMENT_CNT += 1;
|
GLOBAL_ARGUMENT_CNT += 1;
|
||||||
}}
|
}
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1058,10 +1058,10 @@ impl<'a> Context<'a> {
|
|||||||
self.expose_uint32_memory();
|
self.expose_uint32_memory();
|
||||||
self.expose_global_argument_ptr();
|
self.expose_global_argument_ptr();
|
||||||
self.globals.push_str("
|
self.globals.push_str("
|
||||||
function getGlobalArgument(arg) {{
|
function getGlobalArgument(arg) {
|
||||||
const idx = globalArgumentPtr() / 4 + arg;
|
const idx = globalArgumentPtr() / 4 + arg;
|
||||||
return getUint32Memory()[idx];
|
return getUint32Memory()[idx];
|
||||||
}}
|
}
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user