Lines Matching refs:runtime
36 // We check to see if developers access runtime.lastError in order to decide
38 privates(targetChrome.runtime).accessedLastError = false;
39 $Object.defineProperty(targetChrome.runtime, 'lastError', {
42 privates(targetChrome.runtime).accessedLastError = true;
51 * Check if anyone has checked chrome.runtime.lastError since it was set.
57 return privates(targetChrome.runtime).accessedLastError === true;
71 if ('lastError' in targetChrome.runtime)
88 delete targetChrome.runtime.lastError;
89 delete privates(targetChrome.runtime).accessedLastError;
93 // chrome.runtime should always be available, but maybe it's disappeared for
95 var runtimeAvailability = GetAvailability('runtime.lastError');
97 throw new Error('runtime.lastError is not available: ' +
100 if (!chrome.runtime)
101 throw new Error('runtime namespace is null or undefined');