📄 bugs.runtime.js
字号:
// test fix for bug where// if (true)// a = test2->()// was compiling out the assignmentfunction test() { var a; if (true) a = test2->(); trace(a);}function test2(coro) { if (coro.isResuming()) return coro.commence(); coro.suspend(); coro.resume(5); return NjsRuntime.SUSPEND;}test();assertTrail(5);// fix infinite loop bug caused by failure to// rethrow uncaught exceptionsfunction testInfiniteLoop() { nonexistent(); try { any->(); } catch(e) { }}try { testInfiniteLoop(); assert(false, "no exception");} catch(e) { assert(true, "got exception");}// make sure you can call a non-transformed// routine with the -> operatorfunction foo(i) { trace(i);}function testRegularMethod() { trace(1); foo->(2); trace(3);}testRegularMethod();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -