* Internal method to transfer globalQueue items to this context's * defQueue.
()
| 552 | * defQueue. |
| 553 | */ |
| 554 | function takeGlobalQueue() { |
| 555 | //Push all the globalDefQueue items into the context's defQueue |
| 556 | if (globalDefQueue.length) { |
| 557 | //Array splice in the values since the context code has a |
| 558 | //local var ref to defQueue, so cannot just reassign the one |
| 559 | //on context. |
| 560 | apsp.apply(defQueue, |
| 561 | [defQueue.length, 0].concat(globalDefQueue)); |
| 562 | globalDefQueue = []; |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | handlers = { |
| 567 | 'require': function (mod) { |
no outgoing calls
no test coverage detected