We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 626587b commit 835eae3Copy full SHA for 835eae3
src/lib/libemval.js
@@ -141,7 +141,9 @@ var LibraryEmVal = {
141
return Emval.toHandle(v);
142
},
143
144
-#if !DYNAMIC_EXECUTION
+#if SUPPORTS_GLOBALTHIS
145
+ $emval_get_global: () => globalThis,
146
+#elif !DYNAMIC_EXECUTION
147
$emval_get_global: () => {
148
if (typeof globalThis == 'object') {
149
return globalThis;
test/code_size/embind_val_wasm.json
@@ -1,10 +1,10 @@
1
{
2
"a.html": 552,
3
"a.html.gz": 380,
4
- "a.js": 6463,
5
- "a.js.gz": 2798,
+ "a.js": 5971,
+ "a.js.gz": 2670,
6
"a.wasm": 9083,
7
"a.wasm.gz": 4682,
8
- "total": 16098,
9
- "total_gz": 7860
+ "total": 15606,
+ "total_gz": 7732
10
}
0 commit comments