Skip to content

Instantly share code, notes, and snippets.

View jfparadis's full-sized avatar

Jean-Francois Paradis jfparadis

View GitHub Profile
@jfparadis
jfparadis / README.md
Created January 24, 2020 04:14
Testing global powers in XS

Testing global powers in XS

This test checks the status of global powers, in top level main and in a compartment.

Output

*** Testing from main
new Date(): Thu Jan 23 2020 20:13:36 GMT-0800
Date.now(): 1579839216141

Rollup demo

Here is how to run the demo after you download the zip file containing this gist.

Native ESM

$ node main.mjs
[Function: foo] [Function: foo] [Function: bar] [Function: bar]