diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-06 14:59:41 -0700 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-06 14:59:41 -0700 |
commit | 7c94d4d98c7dbf81f57ad66550b59eabc8eaffa7 (patch) | |
tree | d975e522fd2da5a79bc2afc89dc18047d1f17735 /tests/runner.py | |
parent | f8b3b52c27b31656f2c12d63f16b2348c75dc1cb (diff) |
__new__ instead of __alloc__ in integration
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index bc883766..42a63afc 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -1010,8 +1010,7 @@ if 'benchmark' not in sys.argv: int ScriptMe::mulVal(int mul) { value *= mul; } ''' script_src = ''' - var sme = Module._.ScriptMe.__alloc__(); // malloc(sizeof(ScriptMe)) - Module._.ScriptMe.ScriptMe(sme, 83); // ScriptMe::ScriptMe(sme, 83) new ScriptMe(83) (at addr sme) + var sme = Module._.ScriptMe.__new__(83); // malloc(sizeof(ScriptMe)), ScriptMe::ScriptMe(sme, 83) / new ScriptMe(83) (at addr sme) Module._.ScriptMe.mulVal(sme, 2); // ScriptMe::mulVal(sme, 2) sme.mulVal(2) print('*' + Module._.ScriptMe.getVal(sme) + '*'); Module._free(sme); |