new object creation interface
This commit is contained in:
parent
c737f41d8a
commit
e937d189df
23 changed files with 103 additions and 84 deletions
|
|
@ -18,7 +18,7 @@ SUITE(Compiler) {
|
|||
|
||||
{
|
||||
// no errors
|
||||
auto method = objects_api::cast<MethodObject>(NDO->create("method"));
|
||||
auto method = objects_api::create<MethodObject>();
|
||||
|
||||
method->mScript->mReadable->val = "print 1 * 20 + 10;";
|
||||
method->compile();
|
||||
|
|
@ -30,7 +30,7 @@ SUITE(Compiler) {
|
|||
|
||||
{
|
||||
// with errors
|
||||
auto method = objects_api::cast<MethodObject>(NDO->create("method"));
|
||||
auto method = objects_api::create<MethodObject>();
|
||||
|
||||
method->mScript->mReadable->val = "print undefinedVariable;";
|
||||
method->compile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue