erroneous-function-module.js (614B)
1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 class TestURLSelectionOperation { 6 async run(urls, data) { 7 await sharedStorage.append('run-attempt', '1'); 8 undefinedVariable; 9 return -1; 10 } 11 } 12 13 class VerifyRunAttempts { 14 async run(urls, data) { 15 const attempts = await sharedStorage.get('run-attempt'); 16 if (!attempts) { 17 return -1; 18 } 19 return attempts.length; 20 } 21 } 22 23 register('test-url-selection-operation', TestURLSelectionOperation); 24 register('verify-run-attempts', VerifyRunAttempts);