uses (JS) const for stack and slab declarations (#415)

This commit is contained in:
Marcin Baraniecki
2018-07-07 20:36:05 +02:00
committed by Alex Crichton
parent 791e69a5c0
commit d179503a63
2 changed files with 4 additions and 4 deletions

View File

@ -766,7 +766,7 @@ impl<'a> Context<'a> {
}
self.global(&format!(
"
let stack = [];
const stack = [];
"
));
if self.config.debug {
@ -793,7 +793,7 @@ impl<'a> Context<'a> {
"{ obj: true }",
"{ obj: false }",
];
self.global(&format!("let slab = [{}];", initial_values.join(", ")));
self.global(&format!("const slab = [{}];", initial_values.join(", ")));
if self.config.debug {
self.export(
"assertSlabEmpty",