mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
feature: add support for 'LuaValue::Number' type
This commit is contained in:
parent
cd0a20b371
commit
34a44be3ff
1 changed files with 3 additions and 0 deletions
|
@ -21,16 +21,19 @@ fn compile_source<'lua>(
|
|||
if let Some(options) = options {
|
||||
optimization_level = match options.raw_get("optimizationLevel")? {
|
||||
LuaValue::Integer(val) => val as u8,
|
||||
LuaValue::Number(val) => val as u8,
|
||||
_ => optimization_level,
|
||||
};
|
||||
|
||||
coverage_level = match options.raw_get("coverageLevel")? {
|
||||
LuaValue::Integer(val) => val as u8,
|
||||
LuaValue::Number(val) => val as u8,
|
||||
_ => coverage_level,
|
||||
};
|
||||
|
||||
debug_level = match options.raw_get("debugLevel")? {
|
||||
LuaValue::Integer(val) => val as u8,
|
||||
LuaValue::Number(val) => val as u8,
|
||||
_ => debug_level,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue