dom/workers/test/consoleReplaceable_worker.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:9012ad9b351c
1 /**
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
5
6 onmessage = function(event) {
7 postMessage({event: 'console exists', status: !!console, last : false});
8 console = 42;
9 postMessage({event: 'console is replaceable', status: console === 42, last : true});
10 }

mercurial