Skip to content

Commit cd9a3b5

Browse files
committed
Update dependencies and move ts-node to prod for now
1 parent ad92d91 commit cd9a3b5

File tree

3 files changed

+43
-65
lines changed

3 files changed

+43
-65
lines changed

examples/tlsf/assembly/tlsf.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,15 @@ export function allocate_memory(size: usize): usize {
475475

476476
/** Frees the chunk of memory at the specified address. */
477477
export function free_memory(data: usize): void {
478-
var root = ROOT;
479-
if (root && data) {
480-
var block = changetype<Block>(data - Block.INFO);
481-
var blockInfo = block.info;
482-
assert(!(blockInfo & FREE)); // must be used
483-
block.info = blockInfo | FREE;
484-
root.insert(changetype<Block>(data - Block.INFO));
478+
if (data) {
479+
var root = ROOT;
480+
if (root) {
481+
var block = changetype<Block>(data - Block.INFO);
482+
var blockInfo = block.info;
483+
assert(!(blockInfo & FREE)); // must be used
484+
block.info = blockInfo | FREE;
485+
root.insert(changetype<Block>(data - Block.INFO));
486+
}
485487
}
486488
}
487489

package-lock.json

Lines changed: 30 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
1212
},
1313
"dependencies": {
14-
"binaryen": "42.0.0-nightly.20180202",
14+
"binaryen": "42.0.0-nightly.20180208",
1515
"glob": "^7.1.2",
16-
"minimist": "^1.2.0"
16+
"minimist": "^1.2.0",
17+
"ts-node": "^4.1.0"
1718
},
1819
"devDependencies": {
1920
"chalk": "^2.3.0",
2021
"diff": "^3.4.0",
2122
"long": "^4.0.0",
2223
"source-map-support": "^0.5.3",
23-
"ts-loader": "^3.4.0",
24-
"ts-node": "^4.1.0",
24+
"ts-loader": "^3.5.0",
2525
"tslint": "^5.9.1",
2626
"typescript": "^2.7.1",
2727
"webpack": "^3.10.0"

0 commit comments

Comments
 (0)