Method object refactor

This commit is contained in:
IlyaShurupov 2024-03-25 13:57:31 +03:00 committed by Ilya Shurupov
parent 714bdaef12
commit 715175085e
25 changed files with 420 additions and 529 deletions

View file

@ -16,7 +16,7 @@ SUITE(Compiler) {
// no errors
auto method = objects_api::create<MethodObject>();
method->mScript->mReadable->val = "print 1 * 20 + 10;";
method->mBytecodeLink->mReadable->val = "print 1 * 20 + 10;";
method->compile();
objects_api::destroy(method);
@ -28,7 +28,7 @@ SUITE(Compiler) {
// with errors
auto method = objects_api::create<MethodObject>();
method->mScript->mReadable->val = "print undefinedVariable;";
method->mBytecodeLink->mReadable->val = "print undefinedVariable;";
method->compile();
objects_api::destroy(method);