mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 11:41:45 +00:00
Initial implementation of 'new'
This doesn't yet call the constructor or use provided parameters and just allocates raw memory
This commit is contained in:
@ -84,7 +84,14 @@ glob.sync(filter, { cwd: __dirname + "/compiler" }).forEach(filename => {
|
||||
externalFunc: function(arg0, arg1, arg2) {
|
||||
console.log("env.externalFunc called with: " + arg0 + ", " + arg1 + ", " + arg2);
|
||||
},
|
||||
externalConst: 1
|
||||
externalConst: 1,
|
||||
allocate_memory: function(size) {
|
||||
console.log("env.allocate_memory called with: " + size);
|
||||
return 0;
|
||||
},
|
||||
free_memory: function(ptr) {
|
||||
console.log("env.free_memory called with: " + ptr);
|
||||
}
|
||||
},
|
||||
external: {
|
||||
externalFunc: function(arg0, arg1, arg2) {
|
||||
|
Reference in New Issue
Block a user