File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1105,7 +1105,9 @@ function installObjectURLMethods() {
11051105
11061106 function revokeObjectURL ( url ) {
11071107
1108- if ( arguments . length === 0 ) throw new ERR_MISSING_ARGS ( 'url' ) ;
1108+ if ( arguments . length === 0 ) {
1109+ throw new ERR_MISSING_ARGS ( 'url' ) ;
1110+ }
11091111
11101112 bindingBlob . revokeObjectURL ( `${ url } ` ) ;
11111113 }
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+ const common = require ( '../common' ) ;
3+ const fixtures = require ( '../common/fixtures' ) ;
4+
5+ // Test ensures that the function receives the url argument.
6+
7+ const assert = require ( 'node:assert' ) ;
8+
9+ assert . throws ( ( ) => {
10+ URL . revokeObjectURL ( ) ;
11+ } , {
12+ code : 'ERR_MISSING_ARGS' ,
13+ name : 'TypeError' ,
14+ } ) ;
You can’t perform that action at this time.
0 commit comments