Skip to content

Commit 6d1b807

Browse files
committed
Improve error message of unwrap operation on nonlocal scope.
1 parent 6abf151 commit 6d1b807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl NameProtocol for Scope {
163163
.iter()
164164
.skip(1)
165165
.next()
166-
.unwrap()
166+
.expect("no outer scope for non-local")
167167
.set_item(name, value, vm)
168168
.unwrap();
169169
}

0 commit comments

Comments
 (0)