MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

'this' test

+16 -1
+1 -1
meson.build
··· 74 74 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 75 75 76 76 version_conf = configuration_data() 77 - version_conf.set('ANT_VERSION', '0.1.0.2') 77 + version_conf.set('ANT_VERSION', '0.1.0.3') 78 78 version_conf.set('ANT_GIT_HASH', git_hash) 79 79 version_conf.set('ANT_BUILD_DATE', build_date) 80 80
+15
tests/test_this.js
··· 1 + const user = { 2 + name: 'Theo', 3 + greet: function () { 4 + console.log('Hello, ' + this.name); 5 + console.log(this); 6 + 7 + console.log('\nexpecting error below'); 8 + console.log(this.crypto.randomUUID()); 9 + 10 + console.log(globalThis.Ant.version); 11 + console.log(window.crypto.randomUUID()); 12 + } 13 + }; 14 + 15 + user.greet();