Merge pull request #15937 from s-hadinger/berry_fix_setglobal_false

Berry fix regression
This commit is contained in:
s-hadinger 2022-07-06 23:25:01 +02:00 committed by GitHub
commit 61734674c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,6 @@ static int m_setglobal(bvm *vm)
if (top >= 2 && be_isstring(vm, 1)) {
const char * name = be_tostring(vm, 1);
be_setglobal(vm, name);
be_return(vm);
}
be_return_nil(vm);
}

View File

@ -31,8 +31,8 @@ const char berry_prog[] =
#ifdef USE_BERRY_PYTHON_COMPAT
// enable python syntax compatibility mode
"import python_compat "
"import cb "
#endif
"import cb "
#ifdef USE_ENERGY_SENSOR
"import energy "