Modify for mutliple levels of indexing.

This commit is contained in:
Stephen Chung
2020-04-26 18:37:41 +08:00
parent 33d3e34908
commit 619b627d54
2 changed files with 3 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ fn bench_eval_array_large_set(bench: &mut Bencher) {
let script = r#"let x = [ 1, 2.345, "hello", true,
[ 1, 2, 3, [ "hey", [ "deeply", "nested" ], "jude" ] ]
];
x[4] = 42
x[4][3][1][1] = 42
"#;
let mut engine = Engine::new();