You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[eslint] Enable unused argument linting within the JS compiler. NFC (#23494)
Also, remove the explicit `'no-undef'` specifier since we now get that
as part of `js.configs.recommended` above.
Also, remove `vars: 'all'` which is the default.
Copy file name to clipboardExpand all lines: src/modules.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,7 @@ if (!BOOTSTRAPPING_STRUCT_INFO) {
334
334
// Use proxy objects for C_DEFINES and C_STRUCTS so that we can give useful
335
335
// error messages.
336
336
constC_STRUCTS=newProxy(structs,{
337
-
get(target,prop,receiver){
337
+
get(target,prop){
338
338
if(!(propintarget)){
339
339
thrownewError(
340
340
`Missing C struct ${prop}! If you just added it to struct_info.json, you need to run ./tools/maint/gen_struct_info.py (then run a second time with --wasm64)`,
@@ -345,7 +345,7 @@ const C_STRUCTS = new Proxy(structs, {
345
345
});
346
346
347
347
constC_DEFINES=newProxy(defines,{
348
-
get(target,prop,receiver){
348
+
get(target,prop){
349
349
if(!(propintarget)){
350
350
thrownewError(
351
351
`Missing C define ${prop}! If you just added it to struct_info.json, you need to run ./tools/maint/gen_struct_info.py (then run a second time with --wasm64)`,
0 commit comments