Method object refactor
This commit is contained in:
parent
714bdaef12
commit
715175085e
25 changed files with 420 additions and 529 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue