Skip to content

Commit ffe9fc5

Browse files
committed
tmp is this assert
1 parent 4f9cad0 commit ffe9fc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/es6/afArrayTests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ describe("AFArray class and methods", function() {
373373
it("should destroy temporaries (sync)", function() {
374374
let arr, sub;
375375
af.tmp(function() {
376+
assert(this === af.tmp);
376377
arr = new af.AFArray(10, af.dType.f32);
377378
arr.set(new af.Col(0), 0);
378379
arr.set(3, 1);
@@ -400,6 +401,7 @@ describe("AFArray class and methods", function() {
400401
async(function*() {
401402
let arr, sub;
402403
yield af.tmp(async(function* () {
404+
assert(this === af.tmp);
403405
arr = new af.AFArray(10, af.dType.f32);
404406
arr.set(new af.Col(0), 0);
405407
arr.set(3, 1);

0 commit comments

Comments
 (0)