Last active
September 25, 2021 06:10
-
-
Save xyx0no646/9f84cce3cb5454eb5eae9750f1ade943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SomeObject{ | |
| function SomeObject(){ | |
| this.setTimeout = KirikiriEmscriptenInterface.evalJS('(func,time)=>setTimeout(func,time)'); | |
| this.setTimeout(this.timeout incontextof this,1000); | |
| }; | |
| function timeout(){ | |
| Debug.message("timeout is called"); | |
| Debug.message(this); // Now It Works! | |
| Debug.message("this value is:" + this); | |
| } | |
| } | |
| var someObject = new SomeObject(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment