Check data size at built-in.

This commit is contained in:
Stephen Chung
2022-10-20 11:38:54 +08:00
parent 9f36afc84c
commit 988222418e
6 changed files with 202 additions and 68 deletions

View File

@@ -146,11 +146,7 @@ impl Engine {
// Built-in found
let op = op_assign.literal_syntax();
let context = (self, op, None, &*global, lib, *op_pos, level).into();
let result = func(context, args).map(|_| ());
self.check_data_size(args[0], root.1)?;
return result;
return func(context, args).map(|_| ());
}
}