Index: compiled/bindings.ipp |
=================================================================== |
--- a/compiled/bindings.ipp |
+++ b/compiled/bindings.ipp |
@@ -498,17 +498,17 @@ namespace bindings_internal |
var length = 0; |
var buffer = 0; |
if (str) |
{ |
buffer = Runtime.stackAlloc(str.length * 2); |
length = copyString(str, buffer); |
} |
- var result = Module.Runtime.stackAlloc(sizeofString); |
+ var result = Runtime.stackAlloc(sizeofString); |
Wladimir Palant
2017/03/15 11:02:48
We don't need to call this via Module, and above w
|
Module._InitString(result, buffer, length); |
return result; |
} |
function readString(str) |
{ |
var length = Module._GetStringLength(str); |
var pointer = Module._GetStringData(str) >> 1; |
@@ -523,17 +523,18 @@ namespace bindings_internal |
}; |
if (superclass) |
result.prototype = Object.create(superclass.prototype); |
result.prototype.delete = function() |
{ |
Module._ReleaseRef(this._pointer + ref_counted_offset); |
}; |
return result; |
- })"); |
+ } |
+ )"); |
Wladimir Palant
2017/03/15 11:02:48
Surprisingly, this is the only change that was rea
sergei
2017/03/20 17:41:49
Should spaces at the beginning of ` )");` be re
sergei
2017/03/20 17:41:49
Actually the whole last line is removed. I think i
Wladimir Palant
2017/03/21 10:18:59
Luckily, we don't care about the resulting code be
|
} |
void printClass(const ClassInfo& cls) |
{ |
DifferentiatorInfo differentiator = cls.subclass_differentiator; |
if (differentiator.offset != SIZE_MAX) |
{ |
printf("var %s_mapping = \n", cls.name.c_str()); |