| Index: compiled/bindings/generator.cpp | 
| =================================================================== | 
| --- a/compiled/bindings/generator.cpp | 
| +++ b/compiled/bindings/generator.cpp | 
| @@ -379,16 +379,22 @@ | 
| { | 
| this._pointer = pointer; | 
| }; | 
| var proto = (superclass ? superclass.prototype : null); | 
| result.prototype = Object.create(proto, Object.getOwnPropertyDescriptors(props)); | 
| result.prototype.delete = function() | 
| { | 
| Module._ReleaseRef(this._pointer + ref_counted_offset); | 
| + this._pointer = 0xdeadbeef; | 
| 
 
Wladimir Palant
2017/10/11 07:45:51
This is unnecessary, you are overwriting the prope
 
 | 
| + Object.defineProperty(this, "_pointer", { | 
| + get: function() { | 
| + throw new Error("Deleted object"); return 0xdeadbeef; | 
| 
 
Wladimir Palant
2017/10/11 07:45:51
return after throw is dead code.
Nit: "Attemt to
 
 | 
| + }, | 
| + }); | 
| }; | 
| return result; | 
| } | 
| )"); | 
| } | 
| void printClass(const ClassInfo& cls) | 
| { |