Skip to content

Commit 0cab067

Browse files
Jura-Zmarco trivellato
authored andcommitted
Tests added for ‘for .. in’ bug
1 parent cab7273 commit 0cab067

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/webgl2.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context;
1010

1111
int main()
1212
{
13+
EM_ASM({
14+
Array.prototype.someExtensionFromThirdParty = {};
15+
Array.prototype.someExtensionFromThirdParty.length = 42;
16+
Array.prototype.someExtensionFromThirdParty.something = function() { return "Surprise!"; };
17+
});
18+
1319
EmscriptenWebGLContextAttributes attrs;
1420
emscripten_webgl_init_context_attributes(&attrs);
1521
attrs.majorVersion = 2;

0 commit comments

Comments
 (0)