Skip to content

Commit

Permalink
Bug 1610621 : ClearKeptObjects() should return undefined. r=jonco
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D60633

--HG--
extra : moz-landing-system : lando
  • Loading branch information
allstarschh committed Jan 22, 2020
1 parent c1c4d77 commit 10b18ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/src/jit-test/tests/gc/bug-1610621.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assertEq(clearKeptObjects(), undefined);
2 changes: 2 additions & 0 deletions js/src/shell/js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2762,7 +2762,9 @@ static bool CpuNow(JSContext* cx, unsigned argc, Value* vp) {
}

static bool ClearKeptObjects(JSContext* cx, unsigned argc, Value* vp) {
CallArgs args = CallArgsFromVp(argc, vp);
JS::ClearKeptObjects(cx);
args.rval().setUndefined();
return true;
}

Expand Down

0 comments on commit 10b18ed

Please sign in to comment.