Skip to content

Commit

Permalink
patch to nbind
Browse files Browse the repository at this point in the history
  • Loading branch information
rutan committed Nov 29, 2020
1 parent 70349f6 commit 452caac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .node-version
@@ -0,0 +1 @@
12.18.0
3 changes: 3 additions & 0 deletions build.sh
Expand Up @@ -23,3 +23,6 @@ mkdir -p yoga-layout/build
mkdir -p yoga-layout/build/Release
cp node_modules/yoga-layout/dist/{entry-browser,entry-common,YGEnums}* yoga-layout/dist
cp node_modules/yoga-layout/build/Release/nbind.js yoga-layout/build/Release

# patch
sed -i -e 's/_a = _typeModule(_typeModule),/var _a = _typeModule(_typeModule);/' yoga-layout/build/Release/nbind.js
2 changes: 1 addition & 1 deletion yoga-layout/build/Release/nbind.js
Expand Up @@ -1143,7 +1143,7 @@
}
}_nbind.addMethod = addMethod;function throwError(message) {
throw new Error(message);
}_nbind.throwError = throwError;_nbind.bigEndian = false;_a = _typeModule(_typeModule), _nbind.Type = _a.Type, _nbind.makeType = _a.makeType, _nbind.getComplexType = _a.getComplexType, _nbind.structureList = _a.structureList;var BindType = function (_super) {
}_nbind.throwError = throwError;_nbind.bigEndian = false;var _a = _typeModule(_typeModule); _nbind.Type = _a.Type, _nbind.makeType = _a.makeType, _nbind.getComplexType = _a.getComplexType, _nbind.structureList = _a.structureList;var BindType = function (_super) {
__extends(BindType, _super);function BindType() {
var _this = _super !== null && _super.apply(this, arguments) || this;_this.heap = HEAPU32;_this.ptrSize = 4;return _this;
}BindType.prototype.needsWireRead = function (policyTbl) {
Expand Down

0 comments on commit 452caac

Please sign in to comment.